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

Aggregates validation properties computed for an object. More...

Public Types

typedef cadex::internal::ValidationPropertyDataImpl ImplType
 

Public Member Functions

bool IsValid () const
 Returns wether the computed validation properties are valid.
 
double Volume () const
 Returns a volume.
 
double SurfaceArea () const
 Returns a surface area.
 
const Geom::PointCentroid () const
 Returns a center of mass.
 
const Geom::DirectionFirstAxisOfInertia () const
 Returns a first axis of inertia.
 
const Geom::DirectionSecondAxisOfInertia () const
 Returns a second axis of inertia.
 
const Geom::DirectionThirdAxisOfInertia () const
 Returns a third axis of inertia.
 
ImplType * Impl () const
 

Detailed Description

Aggregates validation properties computed for an object.

This class was introduced to compute all validation properties (volume, surface area, COG, axes of inertia) at once. This helps to improve performance compared to computing each property separately.

See also
ValidationProperties.

Member Function Documentation

◆ Centroid()

const Geom::Point & cadex::Measurements::ValidationPropertyData::Centroid ( ) const

Returns a center of mass.

◆ FirstAxisOfInertia()

const Geom::Direction & cadex::Measurements::ValidationPropertyData::FirstAxisOfInertia ( ) const

Returns a first axis of inertia.

◆ IsValid()

bool cadex::Measurements::ValidationPropertyData::IsValid ( ) const

Returns wether the computed validation properties are valid.

◆ SecondAxisOfInertia()

const Geom::Direction & cadex::Measurements::ValidationPropertyData::SecondAxisOfInertia ( ) const

Returns a second axis of inertia.

◆ SurfaceArea()

double cadex::Measurements::ValidationPropertyData::SurfaceArea ( ) const

Returns a surface area.

◆ ThirdAxisOfInertia()

const Geom::Direction & cadex::Measurements::ValidationPropertyData::ThirdAxisOfInertia ( ) const

Returns a third axis of inertia.

◆ Volume()

double cadex::Measurements::ValidationPropertyData::Volume ( ) const

Returns a volume.