Method MassProperties
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
MassProperties(GeoSolid3, double, VolumeMethod)
Gets the mass properties of a body's material at a density by a method, using the default tolerance.
public static MassProperties3 MassProperties(GeoSolid3 solid, double density, VolumeMethod method)
Parameters
solidGeoSolid3densitydoublemethodVolumeMethod
Returns
MassProperties(GeoSolid3, double, VolumeMethod, Tolerance)
Gets the mass properties of a body's material at a density by a method: volume, mass, centroid, the moments and products of inertia about the centroid, and the principal moments and axes.
public static MassProperties3 MassProperties(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
- MassProperties3
The properties; none, at the middle of the body's box, where the openings take all of it.
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.