Click or drag to resize

LengthMassProperties Class

Contains static initialization methods and allows access to the computed metrics of length, length centroid, and length moments in curves.
Inheritance Hierarchy
SystemObject
  Rhino.GeometryLengthMassProperties

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class LengthMassProperties : IDisposable

The LengthMassProperties type exposes the following members.

Properties
  NameDescription
Public propertyCentroid
Gets the length centroid in the world coordinate system.
Public propertyCentroidCoordinatesMomentsOfInertia
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 propertyCentroidCoordinatesMomentsOfInertiaError
Uncertainty in centroid coordinates moments of inertia calculation.
Public propertyCentroidCoordinatesProductMoments
Product moments with respect to centroid coordinate system.
Public propertyCentroidCoordinatesProductMomentsError
Uncertainty in product moments with respect to centroid coordinate system.
Public propertyCentroidCoordinatesRadiiOfGyration
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 propertyCentroidCoordinatesSecondMoments
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 propertyCentroidCoordinatesSecondMomentsError
Uncertainty in centroid coordinates second moments calculation.
Public propertyCentroidError
Gets the uncertainty in the centroid calculation.
Public propertyLength
Gets the length solution.
Public propertyLengthError
Gets the uncertainty in the length calculation.
Public propertyWorldCoordinatesFirstMoments
Returns the world coordinate first moments if they were able to be calculated. X is integral of "x dm" over the length Y is integral of "y dm" over the length Z is integral of "z dm" over the length.
Public propertyWorldCoordinatesFirstMomentsError
Uncertainty in world coordinates first moments calculation.
Public propertyWorldCoordinatesMomentsOfInertia
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 propertyWorldCoordinatesMomentsOfInertiaError
Uncertainty in world coordinates moments of inertia calculation.
Public propertyWorldCoordinatesProductMoments
Returns the world coordinate product moments if they were able to be calculated. X is integral of "xy dm" over the length Y is integral of "yz dm" over the length Z is integral of "zx dm" over the length.
Public propertyWorldCoordinatesProductMomentsError
Uncertainty in world coordinates second moments calculation.
Public propertyWorldCoordinatesRadiiOfGyration
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 propertyWorldCoordinatesSecondMoments
Returns the world coordinate second moments if they were able to be calculated. X is integral of "xx dm" over the length Y is integral of "yy dm" over the length Z is integral of "zz dm" over the length.
Public propertyWorldCoordinatesSecondMomentsError
Uncertainty in world coordinates second moments calculation.
Top
Methods
  NameDescription
Public methodCentroidCoordinatesPrincipalMoments
Calculates the eigenvalues and eigenvectors of the moments matrix with respect to centroid coordinates.
Public methodCentroidCoordinatesPrincipalMomentsOfInertia
Calculates the principal moments of inertia and principal axes with respect to centroid coordinates.
Public methodStatic memberCompute(Curve)
Calculates the length mass properties of a curve.
Public methodStatic memberCompute(IEnumerableCurve)
Calculates the length mass properties of an enumeration of curves.
Public methodStatic memberCompute(Curve, Boolean, Boolean, Boolean, Boolean)
Calculates the length mass properties of a curve.
Public methodStatic memberCompute(IEnumerableCurve, Boolean, Boolean, Boolean, Boolean)
Calculates the length mass properties of an enumeration of curves.
Public methodDispose
Actively reclaims unmanaged resources that this instance uses.
Protected methodDispose(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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWorldCoordinatesPrincipalMoments
Calculates the eigenvalues and eigenvectors of moments matrix in world coordinates.
Public methodWorldCoordinatesPrincipalMomentsOfInertia
Calculates the principal moments of inertia and principal axes with respect to world coordinates.
Top
See Also