can convex hull have sink in point
Posted: Wed Feb 19, 2020 11:46 am
If I want to make convex hull with there points
Which is given box 1,1,1 in length wide and height.
But if I add
into an array, it seems a new point not working.
Is convex hull can only make the smallest polygon that covers points.
Or I have done something wrong.
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.