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.

Validation properties include volume, surface area, centroid, and axes of inertia. They can be computed for an entire model, a model graph element, a B-Rep body or shape.

Depending on the object contents, some computed values may be invalid. 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.

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

◆ Compute() [4/4]

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

Computes the validation properties of the shape.

◆ ComputeCentroid() [1/4]

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

Computes the center of mass of the body.

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

◆ ComputeCentroid() [4/4]

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

Computes the center of mass of the shape.