View Issue Details

IDProjectCategoryView StatusLast Update
0000552FreeCADFeaturepublic2011-12-23 16:45
ReporterapalazziAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version 
Target VersionFixed in Version0.13 
Summary0000552: Add the ability to calculate inertial properties t parts
DescriptionPlease add the ability to calculate properties like volume, center of gravity and inertia tensor for parts.
This seems doing the job: http://opencascade.sourcearchive.com/documentation/6.3.0.dfsg.1-1/classGProp__GProps.html
TagsNo tags attached.

Activities

wmayer

2011-12-23 16:45

administrator   ~0001512

Added in rev 5338.

The shape must be of type solid, otherwise the attributes are not visible.
shape = ...
solid = shape.Solids[0]
...
solid.Mass
solid.CenterOfMass
solid.MatrixOfInertia
solid.StaticMoments
solid.PrincipalProperties -> dictionary
solid.getMomentOfInertia(pnt, dir)
solid.getRadiusOfGyration(pnt, dir)

Issue History

Date Modified Username Field Change
2011-12-22 11:52 apalazzi New Issue
2011-12-23 16:45 wmayer Note Added: 0001512
2011-12-23 16:45 wmayer Status new => closed
2011-12-23 16:45 wmayer Resolution open => fixed
2011-12-23 16:45 wmayer Fixed in Version => 0.13