AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute(closedPlanarCurve, multiple=False)

Computes an AreaMassProperties for a closed planar curve.

Parameters:
  • closedPlanarCurve (rhino3dm.Curve) – Curve 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 AreaMassProperties for the given curve or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute1(closedPlanarCurve, planarTolerance, multiple=False)

Computes an AreaMassProperties for a closed planar curve.

Parameters:
  • closedPlanarCurve (rhino3dm.Curve) – Curve to measure.
  • planarTolerance (float) – absolute tolerance used to insure the closed curve is planar
  • multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns:

The AreaMassProperties for the given curve or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute2(hatch, multiple=False)

Computes an AreaMassProperties for a hatch.

Parameters:
  • hatch (Hatch) – Hatch 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 AreaMassProperties for the given hatch or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute3(mesh, multiple=False)

Computes an AreaMassProperties for a 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 AreaMassProperties for the given Mesh or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute4(mesh, area, firstMoments, secondMoments, productMoments, multiple=False)

Compute the AreaMassProperties for a single Mesh.

Parameters:
  • mesh (rhino3dm.Mesh) – Mesh to measure.
  • area (bool) – True to calculate area.
  • firstMoments (bool) – True to calculate area first moments, area, and area centroid.
  • secondMoments (bool) – True to calculate area second moments.
  • productMoments (bool) – True to calculate area 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 AreaMassProperties for the given Mesh or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute5(brep, multiple=False)

Computes an AreaMassProperties for a 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 AreaMassProperties for the given Brep or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute6(brep, area, firstMoments, secondMoments, productMoments, multiple=False)

Compute the AreaMassProperties for a single Brep.

Parameters:
  • brep (rhino3dm.Brep) – Brep to measure.
  • area (bool) – True to calculate area.
  • firstMoments (bool) – True to calculate area first moments, area, and area centroid.
  • secondMoments (bool) – True to calculate area second moments.
  • productMoments (bool) – True to calculate area 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 AreaMassProperties for the given Brep or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute7(brep, area, firstMoments, secondMoments, productMoments, relativeTolerance, absoluteTolerance, multiple=False)

Compute the AreaMassProperties for a single Brep.

Parameters:
  • brep (rhino3dm.Brep) – Brep to measure.
  • area (bool) – True to calculate area.
  • firstMoments (bool) – True to calculate area first moments, area, and area centroid.
  • secondMoments (bool) – True to calculate area second moments.
  • productMoments (bool) – True to calculate area 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 AreaMassProperties for the given Brep or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute8(surface, multiple=False)

Computes an AreaMassProperties for a 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 AreaMassProperties for the given Surface or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute9(surface, area, firstMoments, secondMoments, productMoments, multiple=False)

Compute the AreaMassProperties for a single Surface.

Parameters:
  • surface (rhino3dm.Surface) – Surface to measure.
  • area (bool) – True to calculate area.
  • firstMoments (bool) – True to calculate area first moments, area, and area centroid.
  • secondMoments (bool) – True to calculate area second moments.
  • productMoments (bool) – True to calculate area 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 AreaMassProperties for the given Surface or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute10(geometry, multiple=False)

Computes the Area properties 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.
  • multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns:

The Area properties for the entire collection or None on failure.

Return type:

AreaMassProperties

compute_rhino3d.AreaMassProperties.Compute11(geometry, area, firstMoments, secondMoments, productMoments, multiple=False)

Computes the AreaMassProperties 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.
  • area (bool) – True to calculate area.
  • firstMoments (bool) – True to calculate area first moments, area, and area centroid.
  • secondMoments (bool) – True to calculate area second moments.
  • productMoments (bool) – True to calculate area 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 AreaMassProperties for the entire collection or None on failure.

Return type:

AreaMassProperties