Ok now the progress bar has a return value, returning false will terminate and return NULL.
I also fix the bug prosssssing those tow mesh, the tree is a very untreatable mesh, to get a decent conxification I have to increase the convex count for 32 to 256
// NewtonMesh* const convexApproximation = NewtonMeshApproximateConvexDecomposition (mesh, 0.01f, 0.2f, 32, 100, ReportProgress);
NewtonMesh* const convexApproximation = NewtonMeshApproximateConvexDecomposition (mesh, 0.01f, 0.2f, 256, 100, ReportProgress);
the produces a nice partition.
this volswagen model, is a very high rest mode and the code was overflowing intermediate buffers. I also have to mak ean adaptive reduction, because reducing to 1500 faces, but tha does no do a good job,
my maing adaptive tshi si hwo the rreduce to 1.5% of the original size is, tshi si hwo it look like afte reduction, and that is what is convex to convexes.
- polyReduction1.png (149.99 KiB) Viewed 7865 times
the tree does not get reduce almost at all, therefore the tree which has about 25000 face take longer that the beetle which has 250000 because the beetle gets reduce s to about 6000 faces.
anyway I believe that conclude that problem, at lest for now, now I will fix the collision bug with the static armadillo scene.