More efficient convex hull calculation
Posted: Sun Mar 05, 2017 9:50 pm
Playing with demos i wanted to increase the definition of meshes of minkowski sums shapes.
So i set
to
The convex hull calculation was taking forever.
I tried to use this library https://github.com/DesignEngrLab/MIConvexHull, and it was much more fast.
Actually with subdivisionCount = 4 the result is wrong in either way, i think that there i some kind of bug, but with 3 it works ok.
So i set
Code: Select all
InertiaHelper.GenerateSphere(2, out SampleDirections, out sampleTriangleIndices);
Code: Select all
InertiaHelper.GenerateSphere([b]4[/b], out SampleDirections, out sampleTriangleIndices);
I tried to use this library https://github.com/DesignEngrLab/MIConvexHull, and it was much more fast.
Actually with subdivisionCount = 4 the result is wrong in either way, i think that there i some kind of bug, but with 3 it works ok.