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

Computes validation properties of objects. More...

#include <cadex/Measurements/ValidationProperties.hxx>

Static Public Member Functions

static Geom::Point ComputeCentroid (const ModelData::Model &theModel)
 Computes the center of mass of the model.
 
static Geom::Point ComputeCentroid (const ModelData::ModelElement &theModelElement)
 Computes the center of mass of the model element.
 
static Geom::Point ComputeCentroid (const ModelData::Body &theBody)
 Computes the center of mass of the body.
 
static Geom::Point ComputeCentroid (const ModelData::Shape &theShape)
 Computes the center of mass of the shape.
 
static ValidationPropertyData Compute (const ModelData::Model &theModel)
 Computes the validation properties of the model.
 
static ValidationPropertyData Compute (const ModelData::ModelElement &theModelElement)
 Computes the validation properties of the model element.
 
static ValidationPropertyData Compute (const ModelData::Body &theBody)
 Computes the validation properties of the body.
 
static ValidationPropertyData Compute (const ModelData::Shape &theShape)
 Computes the validation properties of the shape.
 

Detailed Description

Computes validation properties of objects.

The properties can be computed either for an entire model or for any assembly/part/instance, body or shape.

Depending on the object contents, some validation properties cannot be computed. For instance, volume cannot be computed for sheet bodies, surface area cannot be computed for wireframe bodies.

See also
BoundingBox, SurfaceArea, Volume

Member Function Documentation

◆ Compute() [1/4]

ValidationPropertyData cadex::Measurements::ValidationProperties::Compute ( const ModelData::Body & theBody)
static

Computes the validation properties 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() [2/4]

ValidationPropertyData cadex::Measurements::ValidationProperties::Compute ( const ModelData::Model & theModel)
static

Computes the validation properties of the model.

◆ Compute() [3/4]

ValidationPropertyData cadex::Measurements::ValidationProperties::Compute ( const ModelData::ModelElement & theModelElement)
static

Computes the validation properties 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() [4/4]

ValidationPropertyData cadex::Measurements::ValidationProperties::Compute ( const ModelData::Shape & theShape)
static

Computes the validation properties 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.

◆ ComputeCentroid() [1/4]

Geom::Point cadex::Measurements::ValidationProperties::ComputeCentroid ( const ModelData::Body & theBody)
static

Computes the center of mass 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.

◆ ComputeCentroid() [2/4]

Geom::Point cadex::Measurements::ValidationProperties::ComputeCentroid ( const ModelData::Model & theModel)
static

Computes the center of mass of the model.

◆ ComputeCentroid() [3/4]

Geom::Point cadex::Measurements::ValidationProperties::ComputeCentroid ( const ModelData::ModelElement & theModelElement)
static

Computes the center of mass 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.

◆ ComputeCentroid() [4/4]

Geom::Point cadex::Measurements::ValidationProperties::ComputeCentroid ( const ModelData::Shape & theShape)
static

Computes the center of mass 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.