Table of Contents

Method GetMassProperties

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetMassProperties()

Gets the mass properties of the material at a density of one, using the default tolerance.

public MassProperties3 GetMassProperties()

Returns

MassProperties3

GetMassProperties(double)

Gets the mass properties of the material at a density, using the default tolerance.

public MassProperties3 GetMassProperties(double density)

Parameters

density double

Returns

MassProperties3

GetMassProperties(double, Tolerance)

Gets the mass properties of the material at a density: volume, mass, centroid, the moments and products of inertia about the centroid, and the principal moments and axes.

public MassProperties3 GetMassProperties(double density, Tolerance tolerance)

Parameters

density double

The mass of a unit of volume; in kilograms per cubic millimetre, steel is 7.85E-6.

tolerance Tolerance

The tolerance the openings are cut in and the surface meshed to.

Returns

MassProperties3

The properties; openings are taken out of every one of them.

Remarks

Every integral is exact for the body's faces, taken over the surface by the divergence theorem, and the body is read as its material: a plate's bolt holes come out of its weight and move its centroid.

Exceptions

ArgumentOutOfRangeException

Thrown when the density is not a positive number.