Quantcast
Channel: BEPUphysics
Viewing all articles
Browse latest Browse all 243

Closed Issue: ConvexHullShape constructor doesn't remove inner points [3]

$
0
0
I noticed that the ConvexHullShape constructer doesn't call Toolbox.GetConvexHull() to remove points inside the volume. GetSurfaceTriangles() does however call Toolbox.GetConvexHull(), presumably to generate a surface triangle list.

Since Toolbox.GetConvexHull() performs intensive calculations, a better behavior would be to call Toolbox.GetConvexHull() only once in the ConvexHullShape constructor, and store the generated triangle list for later use.

I'm basing my assumption as to the intended behavior on this old forum post:
"...when you give a list of points to a ConvexHull constructor, Toolbox.GetConvexHull is called internally so you don't need to do it before you pass in a point list." - http://www.bepu-games.com/forums/viewtopic.php?f=4&t=419&start=0#p4256

Viewing all articles
Browse latest Browse all 243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>