Table of Contents

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

solid GeoSolid3
method VolumeMethod

Returns

double

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

solid GeoSolid3

The body, closed; the volume of a surface that does not close means nothing.

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 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.