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)
 
static double Compute (cadex.ModelData.ModelElement theElement)
 Computes the volume of the model element.
 
static double Compute (cadex.ModelData.Body theBody)
 Computes the volume of the body.
 
static double Compute (cadex.ModelData.Shape theShape)
 Computes the volume of the shape.
 
static double Compute (cadex.ModelData.IndexedTriangleSet theITS)
 Computes the volume of the indexed triangle set.
 
static double Compute (cadex.Machining_Hole theHole)
 Returns the removed material volume of theHole in mm^3 or -1.0 upon failure.
 
static double Compute (cadex.Machining_Countersink theCountersink)
 Returns the removed material volume of theCountersink in mm^3 or -1.0 upon failure.
 
static double Compute (cadex.Machining_Pocket thePocket)
 Returns the removed material volume of thePocket in mm^3 or -1.0 upon failure.
 
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.
 
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.
 

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() [1/9]

static double cadex.Measurements.Volume.Compute ( cadex.Machining_Countersink theCountersink)
inlinestatic

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.

◆ Compute() [2/9]

static double cadex.Measurements.Volume.Compute ( cadex.Machining_Hole theHole)
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.

◆ Compute() [3/9]

static double cadex.Measurements.Volume.Compute ( cadex.Machining_Pocket thePocket)
inlinestatic

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.

◆ Compute() [4/9]

static double cadex.Measurements.Volume.Compute ( cadex.ModelData.Body theBody)
inlinestatic

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.

◆ Compute() [5/9]

static double cadex.Measurements.Volume.Compute ( cadex.ModelData.IndexedTriangleSet theITS)
inlinestatic

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.

◆ Compute() [6/9]

static double cadex.Measurements.Volume.Compute ( cadex.ModelData.ModelElement theElement)
inlinestatic

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.

◆ Compute() [7/9]

static double cadex.Measurements.Volume.Compute ( cadex.ModelData.Shape theShape)
inlinestatic

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.

◆ Compute() [8/9]

static double cadex.Measurements.Volume.Compute ( cadex.SheetMetal_Cutout theCutout,
cadex.SheetMetal_FlatPattern theFlatPattern )
inlinestatic

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.

◆ Compute() [9/9]

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