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
solidGeoSolid3densitydoublemethodVolumeMethod
Returns
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
solidGeoSolid3The body.
densitydoubleThe mass of a unit of volume; in kilograms per cubic millimetre, steel is 7.85E-6.
methodVolumeMethodHow the faces are read.
toleranceToleranceThe 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.