RhinoCompute.AreaMassProperties

RhinoCompute.AreaMassProperties.compute(closedPlanarCurve, multiple=false)

Computes an AreaMassProperties for a closed planar curve.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute1(closedPlanarCurve, planarTolerance, multiple=false)

Computes an AreaMassProperties for a closed planar curve.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute2(hatch, multiple=false)

Computes an AreaMassProperties for a hatch.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute3(mesh, multiple=false)

Computes an AreaMassProperties for a mesh.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute4(mesh, area, firstMoments, secondMoments, productMoments, multiple=false)

Compute the AreaMassProperties for a single Mesh.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute5(brep, multiple=false)

Computes an AreaMassProperties for a brep.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute6(brep, area, firstMoments, secondMoments, productMoments, multiple=false)

Compute the AreaMassProperties for a single Brep.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute7(brep, area, firstMoments, secondMoments, productMoments, relativeTolerance, absoluteTolerance, multiple=false)

Compute the AreaMassProperties for a single Brep.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute8(surface, multiple=false)

Computes an AreaMassProperties for a surface.

Arguments:
  • 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

RhinoCompute.AreaMassProperties.compute9(surface, area, firstMoments, secondMoments, productMoments, multiple=false)

Compute the AreaMassProperties for a single Surface.

Arguments:
  • 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

RhinoCompute.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.

Arguments:
  • 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

RhinoCompute.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.

Arguments:
  • 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