Code: Select all
points[i++] = new Vector3(0, 0, 0);
points[i++] = new Vector3(0, 0, 1);
points[i++] = new Vector3(0, 1, 0);
points[i++] = new Vector3(1, 0, 0);
points[i++] = new Vector3(1, 1, 0);
points[i++] = new Vector3(1, 0, 1);
points[i++] = new Vector3(0, 1, 1);
points[i++] = new Vector3(1, 1, 1);
But if I add
Code: Select all
points[i++] = new Vector3(0, 0.5, 0);
Is convex hull can only make the smallest polygon that covers points.
Or I have done something wrong.