Hide menu
Loading...
Searching...
No Matches

Computes the volume of objects. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Volume (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 

Static Public Member Functions

static double Compute (cadex.ModelData.Model theModel)
 Computes the volume of the model.
 
static double Compute (cadex.ModelData.ModelElement theElement)
 Computes the volume of the model element. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.ModelData.Body theBody)
 Computes the volume of the body. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.ModelData.Shape theShape)
 Computes the volume of the shape. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.ModelData.IndexedTriangleSet theITS)
 Computes the volume of the indexed triangle set. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.Machining_Hole theHole)
 Returns the removed material volume of theHole in mm^3 or -1.0 upon failure. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.Machining_Countersink theCountersink)
 Returns the removed material volume of theCountersink in mm^3 or -1.0 upon failure. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.Machining_Pocket thePocket)
 Returns the removed material volume of thePocket in mm^3 or -1.0 upon failure. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.SheetMetal_Hole theHole, cadex.SheetMetal_FlatPattern theFlatPattern)
 Returns the removed material volume of theHole in mm^3 or -1.0 upon failure. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static double Compute (cadex.SheetMetal_Cutout theCutout, cadex.SheetMetal_FlatPattern theFlatPattern)
 Returns the removed material volume of theCutout in mm^3 or -1.0 upon failure. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Computes the volume of objects.

The volume can be computed either for an entire model or for any assembly/part/instance, body, shape or for specific features.

Depending on the object contents, the volume may not be computable. For instance, volume cannot be computed for sheet or wireframe bodies.

Member Function Documentation

◆ Compute()

static double cadex.Measurements.Volume.Compute ( cadex.SheetMetal_Hole theHole,
cadex.SheetMetal_FlatPattern theFlatPattern )
inlinestatic

Returns the removed material volume of theHole in mm^3 or -1.0 upon failure. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Note
The method works only with simple hole (
See also
SheetMetal_Hole), but not complex one (
SheetMetal_ComplexHole).