Table of Contents

Method Mass

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Mass(GeoSolid3, double, VolumeMethod)

Gets the mass of a body's material at a density by a method, using the default tolerance.

public static double Mass(GeoSolid3 solid, double density, VolumeMethod method)

Parameters

solid GeoSolid3
density double
method VolumeMethod

Returns

double

Mass(GeoSolid3, double, VolumeMethod, Tolerance)

Gets the mass of a body's material at a density by a method: the density times its volume.

public static double Mass(GeoSolid3 solid, double density, VolumeMethod method, Tolerance tolerance)

Parameters

solid GeoSolid3

The body.

density double

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

method VolumeMethod

How the faces are read.

tolerance Tolerance

The tolerance the openings are cut in and the faces broken into triangles within.

Returns

double

The mass; nought where the openings take all of the body.

Exceptions

ArgumentNullException

Thrown when the body is null.

ArgumentOutOfRangeException

Thrown when the density is not a positive number, or the method is not one of VolumeMethod.