ua4192 Posted June 19, 2017 Share Posted June 19, 2017 Hi. Is it possible to compute the real volume (not bounding box based) or the meshes I am importing in GLTF files? I have read it is possible to do it from vertix buffer Best regards. Quote Link to comment Share on other sites More sharing options...
JohnK Posted June 20, 2017 Share Posted June 20, 2017 Interesting question! Mathematically possible but not straightforward. Might play with it over the next week or so, unless somebody already has the answer. Quote Link to comment Share on other sites More sharing options...
jerome Posted June 20, 2017 Share Posted June 20, 2017 If I remember well my distant physics classes, you might find the derivative function of an elementary delta in your volume and then use an integral ... Not that easy when the volume has no predefined or known shape. Maybe another approach assuming the volume is concave convex (the barycenter is "inside" the mesh and all the tetrahdrons are "inside" the mesh) : compute the barycenter position then from each mesh facet, compute the volume of each pyramid (tetrahedron) based on the facet triangle with the barycenter as the summit If the volume is not concave, split it into many concave convex ones and iterate the former process Quote Link to comment Share on other sites More sharing options...
ua4192 Posted June 21, 2017 Author Share Posted June 21, 2017 Many thanks for your support. Due to the big amount of meshes I have decidef to discard this option and use bounding box volume instead. Now after reading some docs I understand the problem. Best regards. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.