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::Point & | Centroid () const |
| Returns a center of mass. | |
| const Geom::Direction & | FirstAxisOfInertia () const |
| Returns a first axis of inertia. | |
| const Geom::Direction & | SecondAxisOfInertia () const |
| Returns a second axis of inertia. | |
| const Geom::Direction & | ThirdAxisOfInertia () const |
| Returns a third axis of inertia. | |
| ImplType * | Impl () const |
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.
| const Geom::Point & cadex::Measurements::ValidationPropertyData::Centroid | ( | ) | const |
Returns a center of mass.
| const Geom::Direction & cadex::Measurements::ValidationPropertyData::FirstAxisOfInertia | ( | ) | const |
Returns a first axis of inertia.
| bool cadex::Measurements::ValidationPropertyData::IsValid | ( | ) | const |
Returns wether the computed validation properties are valid.
| const Geom::Direction & cadex::Measurements::ValidationPropertyData::SecondAxisOfInertia | ( | ) | const |
Returns a second axis of inertia.
| double cadex::Measurements::ValidationPropertyData::SurfaceArea | ( | ) | const |
Returns a surface area.
| const Geom::Direction & cadex::Measurements::ValidationPropertyData::ThirdAxisOfInertia | ( | ) | const |
Returns a third axis of inertia.
| double cadex::Measurements::ValidationPropertyData::Volume | ( | ) | const |
Returns a volume.