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

Returning center of gravity as part of return value of file:massprops #69

Closed
iincer opened this issue Jun 28, 2021 · 5 comments
Closed

Comments

@iincer
Copy link

iincer commented Jun 28, 2021

The "mass properties" computed by Creo include items like total mass, volume, several inertia values, center of gravity, etc. Currently, the file:massprops function returns a subset of these values, namely volume, mass, density, surface_area, ctr_grav_inertia_tensor, coord_sys_inertia, and coord_sys_inertia_tensor.
The center of gravity is a very useful parameter of a device, and should be part of the value returned by file:massprops.

@adama2000
Copy link
Contributor

adama2000 commented Jun 28, 2021 via email

@iincer
Copy link
Author

iincer commented Jun 28, 2021

Sounds perfect. Thank you. I implemented this in a local copy of the code and can open a pull request for your review.

@adama2000
Copy link
Contributor

adama2000 commented Jun 28, 2021 via email

@adama2000
Copy link
Contributor

I was wrong about what it returned, it returns a 3D point, not a 3D matrix. Good enough?

@adama2000
Copy link
Contributor

Checked in code, will be released with next release.

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