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(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.Compute5(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.Compute6(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 area 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.Compute7(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 area 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