-
Notifications
You must be signed in to change notification settings - Fork 23
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
Comments
Should be able to add that, there is a PTC function GetGravityCenter()
which returns "The center of gravity with respect to coordinate frame" as a
3D matrix.
…On Mon, Jun 28, 2021 at 5:36 PM Inigo Incer ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#69>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPCKVRT5JNEOYO2ZTQDTVDTOXANCNFSM47OZZ6VQ>
.
|
Sounds perfect. Thank you. I implemented this in a local copy of the code and can open a pull request for your review. |
Sure, but I won't be able to look at it for a couple of days due to going
out of town.
Adam
…On Mon, Jun 28, 2021 at 6:06 PM Inigo Incer ***@***.***> wrote:
Sounds perfect. Thank you. I implemented this in a local copy of the code
and can open a pull request for your review.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANPKPCNJKOKSP57STHMIHDTVDW7BANCNFSM47OZZ6VQ>
.
|
I was wrong about what it returned, it returns a 3D point, not a 3D matrix. Good enough? |
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
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.
The text was updated successfully, but these errors were encountered: