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.

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ Compute() [4/10]

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

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

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

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ Compute() [8/10]

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

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

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

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

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