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

Volume can be computed for an entire model, a model graph element (assembly/part/instance), a solid body, a shape, an indexed triangle set, or manufacturing features.

For manufacturing features, the returned value represents the removed material volume in mm^3, or -1.0 if the computation fails.

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/10]

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.

◆ Compute() [2/10]

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.

◆ Compute() [3/10]

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.

◆ Compute() [4/10]

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

Computes the volume of the body.

◆ Compute() [5/10]

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

Computes the volume of the indexed triangle set.

◆ Compute() [6/10]

static double cadex.Measurements.Volume.Compute ( cadex.ModelData.Model theModel)
inlinestatic

Computes the volume of the model.

◆ Compute() [7/10]

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

Computes the volume of the model element.

◆ Compute() [8/10]

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

Computes the volume of the shape.

◆ Compute() [9/10]

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.

◆ Compute() [10/10]

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.

Note
The SheetMetal_Hole overload supports simple holes only (
See also
SheetMetal_Hole). Complex holes are not supported (
SheetMetal_ComplexHole).