Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MassProperties computation for triangle meshes #16

Closed
sebcrozet opened this issue Mar 2, 2021 · 3 comments
Closed

Add MassProperties computation for triangle meshes #16

sebcrozet opened this issue Mar 2, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sebcrozet
Copy link
Member

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 sebcrozet added enhancement New feature or request good first issue Good for newcomers labels Mar 2, 2021
@metric-space
Copy link

metric-space commented Jul 20, 2022

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

@wlinna
Copy link
Contributor

wlinna commented Nov 6, 2022

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).

@sebcrozet
Copy link
Member Author

sebcrozet commented Nov 6, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants