Method Volume
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Volume(GeoSolid3, VolumeMethod)
Gets the volume of a body's material by a method, using the default tolerance.
public static double Volume(GeoSolid3 solid, VolumeMethod method)
Parameters
solidGeoSolid3methodVolumeMethod
Returns
Volume(GeoSolid3, VolumeMethod, Tolerance)
Gets the volume of a body's material by a method, its openings cut in first.
public static double Volume(GeoSolid3 solid, VolumeMethod method, Tolerance tolerance)
Parameters
solidGeoSolid3The body, closed; the volume of a surface that does not close means nothing.
methodVolumeMethodHow the faces are read.
toleranceToleranceThe tolerance the openings are cut in and the faces broken into triangles within.
Returns
- double
The volume, positive whichever way the faces are wound; nought where the openings take all of it.
Exceptions
- ArgumentNullException
Thrown when the body is null.
- ArgumentOutOfRangeException
Thrown when the method is not one of VolumeMethod.