VolumeMassProperties¶
-
compute_rhino3d.VolumeMassProperties.
Compute
(mesh, multiple=False)¶ Compute the VolumeMassProperties for a single Mesh.
Parameters: - mesh (rhino3dm.Mesh) – Mesh to measure.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Mesh or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute1
(mesh, volume, firstMoments, secondMoments, productMoments, multiple=False)¶ Compute the VolumeMassProperties for a single Mesh.
Parameters: - mesh (rhino3dm.Mesh) – Mesh to measure.
- volume (bool) – True to calculate volume.
- firstMoments (bool) – True to calculate volume first moments, volume, and volume centroid.
- secondMoments (bool) – True to calculate volume second moments.
- productMoments (bool) – True to calculate volume product moments.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Mesh or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute2
(brep, multiple=False)¶ Compute the VolumeMassProperties for a single Brep.
Parameters: - brep (rhino3dm.Brep) – Brep to measure.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Brep or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute3
(brep, volume, firstMoments, secondMoments, productMoments, multiple=False)¶ Compute the VolumeMassProperties for a single Brep.
Parameters: - brep (rhino3dm.Brep) – Brep to measure.
- volume (bool) – True to calculate volume.
- firstMoments (bool) – True to calculate volume first moments, volume, and volume centroid.
- secondMoments (bool) – True to calculate volume second moments.
- productMoments (bool) – True to calculate volume product moments.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Brep or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute4
(brep, volume, firstMoments, secondMoments, productMoments, relativeTolerance, absoluteTolerance, multiple=False)¶ Compute the VolumeMassProperties for a single Brep.
Parameters: - brep (rhino3dm.Brep) – Brep to measure.
- volume (bool) – True to calculate volume.
- firstMoments (bool) – True to calculate volume first moments, volume, and volume centroid.
- secondMoments (bool) – True to calculate volume second moments.
- productMoments (bool) – True to calculate volume product moments.
- relativeTolerance (float) – The relative tolerance used for the calculation. In overloads of this function where tolerances are not specified, 1.0e-6 is used.
- absoluteTolerance (float) – The absolute tolerancwe used for the calculation. In overloads of this function where tolerances are not specified, 1.0e-6 is used.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Brep or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute5
(surface, multiple=False)¶ Compute the VolumeMassProperties for a single Surface.
Parameters: - surface (rhino3dm.Surface) – Surface to measure.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Surface or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute6
(surface, volume, firstMoments, secondMoments, productMoments, multiple=False)¶ Compute the VolumeMassProperties for a single Surface.
Parameters: - surface (rhino3dm.Surface) – Surface to measure.
- volume (bool) – True to calculate volume.
- firstMoments (bool) – True to calculate volume first moments, volume, and volume centroid.
- secondMoments (bool) – True to calculate volume second moments.
- productMoments (bool) – True to calculate volume product moments.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the given Surface or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute7
(geometry, multiple=False)¶ Computes the VolumeMassProperties for a collection of geometric objects. At present only Breps, Surfaces, and Meshes are supported.
Parameters: - geometry (list[rhino3dm.GeometryBase]) – Objects to include in the volume computation.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the entire collection or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Compute8
(geometry, volume, firstMoments, secondMoments, productMoments, multiple=False)¶ Computes the VolumeMassProperties for a collection of geometric objects. At present only Breps, Surfaces, Meshes and Planar Closed Curves are supported.
Parameters: - geometry (list[rhino3dm.GeometryBase]) – Objects to include in the volume computation.
- volume (bool) – True to calculate volume.
- firstMoments (bool) – True to calculate volume first moments, volume, and volume centroid.
- secondMoments (bool) – True to calculate volume second moments.
- productMoments (bool) – True to calculate volume product moments.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: The VolumeMassProperties for the entire collection or None on failure.
Return type: VolumeMassProperties
-
compute_rhino3d.VolumeMassProperties.
Sum
(thisVolumeMassProperties, summand, multiple=False)¶ Sum mass properties together to get an aggregate mass.
Parameters: - summand (VolumeMassProperties) – mass properties to add.
- multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns: True if successful.
Return type: bool