Computes volume of the 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. 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const 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 (const SheetMetal_Hole &theHole, const 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 (const SheetMetal_Cutout &theCutout, const 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. | |
Computes volume of the 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 computed. For instance, volume cannot be computed for sheet or wireframe bodies.
|
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.