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

20221130 Center and sizes for STL objects not reflected accurately in Radia #4972

Closed
Benbenbenin0 opened this issue Oct 19, 2022 · 3 comments
Assignees
Milestone

Comments

@Benbenbenin0
Copy link
Contributor

Object center is dependent on how how the STL is exported, sometimes isn't aligned with the shape. Can likely be fixed by using trimesh.center_mass (or .centroid) to determine appropriate center.

Object size is currently just default values, can likely use trimesh bounding box to determine actual size.

@Benbenbenin0 Benbenbenin0 added this to the mpmd milestone Oct 19, 2022
@Benbenbenin0 Benbenbenin0 self-assigned this Oct 19, 2022
@mkeilman
Copy link
Contributor

Keep in mind that the centering needs to be done on the client side since the user is dragging it aound (see radiaService.centerExtrudedPoints())

@Benbenbenin0
Copy link
Contributor Author

Merging #4971 into this issue

@Benbenbenin0
Copy link
Contributor Author

Benbenbenin0 commented Nov 16, 2022

Shape center is now reflective of one chosen in design tab, current solution translates the radia object once created in build_stl() to the cords given by d.center

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants