Click or drag to resize

AreaMassPropertiesCompute Method (Mesh, Boolean, Boolean, Boolean, Boolean)

Compute the AreaMassProperties for a single Mesh.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.3
Syntax
public static AreaMassProperties Compute(
	Mesh mesh,
	bool area,
	bool firstMoments,
	bool secondMoments,
	bool productMoments
)

Parameters

mesh
Type: Rhino.GeometryMesh
Mesh to measure.
area
Type: SystemBoolean
true to calculate area.
firstMoments
Type: SystemBoolean
true to calculate area first moments, area, and area centroid.
secondMoments
Type: SystemBoolean
true to calculate area second moments.
productMoments
Type: SystemBoolean
true to calculate area product moments.

Return Value

Type: AreaMassProperties
The AreaMassProperties for the given Mesh or null on failure.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen mesh is null.
See Also