T_Rhino_Geometry_AreaMassProperties - mcneel/rhinocommon-api-docs GitHub Wiki

AreaMassProperties Class

Contains static initialization methods and allows access to the computed metrics of area, area centroid and area moments in closed planar curves, in meshes, in surfaces, in hatches and in boundary representations.

Inheritance Hierarchy

System.Object
  Rhino.Geometry.AreaMassProperties
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public class AreaMassProperties : IDisposable

VB

Public Class AreaMassProperties
	Implements IDisposable

The AreaMassProperties type exposes the following members.

Properties

 

Name Description
Public property Area Gets the area solution.
Public property AreaError Gets the uncertainty in the area calculation.
Public property Centroid Gets the area centroid in the world coordinate system.
Public property CentroidCoordinatesMomentsOfInertia Moments of inertia with respect to centroid coordinate system. X = integral of ((y-y0)^2 + (z-z0)^2) dm Y = integral of ((z-z0)^2 + (x-x0)^2) dm Z = integral of ((z-z0)^2 + (y-y0)^2) dm where (x0,y0,z0) = centroid.
Public property CentroidCoordinatesMomentsOfInertiaError Uncertainty in centroid coordinates moments of inertia calculation.
Public property CentroidCoordinatesRadiiOfGyration Radii of gyration with respect to centroid coordinate system. X = sqrt(integral of ((y-y0)^2 + (z-z0)^2) dm/M) Y = sqrt(integral of ((z-z0)^2 + (x-x0)^2) dm/M) Z = sqrt(integral of ((z-z0)^2 + (y-y0)^2) dm/M) where (x0,y0,z0) = centroid.
Public property CentroidCoordinatesSecondMoments Second moments with respect to centroid coordinate system. X = integral of (x-x0)^2 dm Y = integral of (y-y0)^2 dm Z = integral of (z-z0)^2 dm where (x0,y0,z0) = centroid.
Public property CentroidCoordinatesSecondMomentsError Uncertainty in centroid coordinates second moments calculation.
Public property CentroidError Gets the uncertainty in the centroid calculation.
Public property WorldCoordinatesFirstMoments Returns the world coordinate first moments if they were able to be calculated. X is integral of "x dm" over the area Y is integral of "y dm" over the area Z is integral of "z dm" over the area.
Public property WorldCoordinatesFirstMomentsError Uncertainty in world coordinates first moments calculation.
Public property WorldCoordinatesMomentsOfInertia The moments of inertia about the world coordinate axes. X = integral of (y^2 + z^2) dm Y = integral of (z^2 + x^2) dm Z = integral of (z^2 + y^2) dm.
Public property WorldCoordinatesMomentsOfInertiaError Uncertainty in world coordinates moments of inertia calculation.
Public property WorldCoordinatesProductMoments Returns the world coordinate product moments if they were able to be calculated. X is integral of "xy dm" over the area Y is integral of "yz dm" over the area Z is integral of "zx dm" over the area.
Public property WorldCoordinatesProductMomentsError Uncertainty in world coordinates second moments calculation.
Public property WorldCoordinatesRadiiOfGyration Radii of gyration with respect to world coordinate system. X = sqrt(integral of (y^2 + z^2) dm/M) Y = sqrt(integral of (z^2 + x^2) dm/M) Z = sqrt(integral of (z^2 + y^2) dm/M)
Public property WorldCoordinatesSecondMoments Returns the world coordinate first moments if they were able to be calculated. X is integral of "xx dm" over the area Y is integral of "yy dm" over the area Z is integral of "zz dm" over the area.
Public property WorldCoordinatesSecondMomentsError Uncertainty in world coordinates second moments calculation.
  Back to Top

Methods

 

Name Description
Public methodStatic member Compute(Brep) Computes an AreaMassProperties for a brep.
Public methodStatic member Compute(Curve) Computes an AreaMassProperties for a closed planar curve.
Public methodStatic member Compute(IEnumerable(GeometryBase)) Computes the Area properties for a collection of geometric objects. At present only Breps, Surfaces, Meshes and Planar Closed Curves are supported.
Public methodStatic member Compute(Hatch) Computes an AreaMassProperties for a hatch.
Public methodStatic member Compute(Mesh) Computes an AreaMassProperties for a mesh.
Public methodStatic member Compute(Surface) Computes an AreaMassProperties for a surface.
Public methodStatic member Compute(Curve, Double) Computes an AreaMassProperties for a closed planar curve.
Public method Dispose() Actively reclaims unmanaged resources that this instance uses.
Protected method Dispose(Boolean) For derived class implementers. This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Passively reclaims unmanaged resources when the class user did not explicitly call Dispose(). (Overrides Object.Finalize().)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️