Hide menu
Loading...
Searching...
No Matches
cadex::Measurements::Volume Class Reference

Computes the volume of objects. More...

#include <cadex/Measurements/Volume.hxx>

Static Public Member Functions

static double Compute (const ModelData::Model &theModel)
 Computes the volume of the model.
 
static double Compute (const ModelData::ModelElement &theElement)
 Computes the volume of the model element.
 
static double Compute (const ModelData::Body &theBody)
 Computes the volume of the body.
 
static double Compute (const ModelData::Shape &theShape)
 Computes the volume of the shape.
 
static double Compute (const ModelData::IndexedTriangleSet &theITS)
 Computes the volume of the indexed triangle set.
 
static double Compute (const Machining_Hole &theHole)
 Returns the removed material volume of theHole in mm^3 or -1.0 upon failure.
 
static double Compute (const Machining_Countersink &theCountersink)
 Returns the removed material volume of theCountersink in mm^3 or -1.0 upon failure.
 
static double Compute (const Machining_Pocket &thePocket)
 Returns the removed material volume of thePocket in mm^3 or -1.0 upon failure.
 
static double Compute (const SheetMetal_Hole &theHole, const SheetMetal_FlatPattern &theFlatPattern)
 Returns the removed material volume of theHole in mm^3 or -1.0 upon failure.
 
static double Compute (const SheetMetal_Cutout &theCutout, const SheetMetal_FlatPattern &theFlatPattern)
 Returns the removed material volume of theCutout in mm^3 or -1.0 upon failure.
 

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]

double cadex::Measurements::Volume::Compute ( const Machining_Countersink & theCountersink)
static

Returns the removed material volume of theCountersink in mm^3 or -1.0 upon failure.

◆ Compute() [2/10]

double cadex::Measurements::Volume::Compute ( const Machining_Hole & theHole)
static

Returns the removed material volume of theHole in mm^3 or -1.0 upon failure.

◆ Compute() [3/10]

double cadex::Measurements::Volume::Compute ( const Machining_Pocket & thePocket)
static

Returns the removed material volume of thePocket in mm^3 or -1.0 upon failure.

◆ Compute() [4/10]

double cadex::Measurements::Volume::Compute ( const ModelData::Body & theBody)
static

Computes the volume of the body.

◆ Compute() [5/10]

double cadex::Measurements::Volume::Compute ( const ModelData::IndexedTriangleSet & theITS)
static

Computes the volume of the indexed triangle set.

◆ Compute() [6/10]

double cadex::Measurements::Volume::Compute ( const ModelData::Model & theModel)
static

Computes the volume of the model.

◆ Compute() [7/10]

double cadex::Measurements::Volume::Compute ( const ModelData::ModelElement & theElement)
static

Computes the volume of the model element.

◆ Compute() [8/10]

double cadex::Measurements::Volume::Compute ( const ModelData::Shape & theShape)
static

Computes the volume of the shape.

◆ Compute() [9/10]

double cadex::Measurements::Volume::Compute ( const SheetMetal_Cutout & theCutout,
const SheetMetal_FlatPattern & theFlatPattern )
static

Returns the removed material volume of theCutout in mm^3 or -1.0 upon failure.

◆ Compute() [10/10]

double cadex::Measurements::Volume::Compute ( const SheetMetal_Hole & theHole,
const SheetMetal_FlatPattern & theFlatPattern )
static

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