parry icon indicating copy to clipboard operation
parry copied to clipboard

Add MassProperties computation for triangle meshes

Open sebcrozet opened this issue 4 years ago • 1 comments
trafficstars

We should add an automatic computation of triangle-mesh mass properties. This would implicitly assume that the TriMesh is manifold and have consistent winding.

That paper suggests that this should be fairly easy to implement, based on the existing code that computes ConvexPolyhedron mass properties.

sebcrozet avatar Mar 02 '21 16:03 sebcrozet

@sebcrozet would it be fair to say you've already implemented this?

metric-space avatar Jul 20 '22 08:07 metric-space

I use parry for processing arbitrary (i.e. I can't change the input itself) BIM models, and there's no guarantee that each mesh in a model will be manifold or have consistent winding. I hope these "automatic computations" will stay opt-in, i.e. only computed when set_flags is called with specific flag(s).

wlinna avatar Nov 06 '22 01:11 wlinna

@metric-space Yes, it’s implemented now, this issue can be closed. @wlinna There is no automatic calculation of the mass properties when the mesh is built. It needs to be calculated by calling trimesh.mass_properties() explicitly.

sebcrozet avatar Nov 06 '22 10:11 sebcrozet