Defines parameters for computing an oriented 2d bounding box. More...
Public Types | |
| enum class | OptimizationCriterion { Area , Perimeter , AreaThenPerimeter , PerimeterThenArea } |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Public Member Functions | |
| OptimizationCriterion | Criterion () const |
| Returns the optimization criterion used to compute the 2d bounding box. | |
| void | SetCriterion (OptimizationCriterion theCriterion) |
| Sets the optimization criterion used to compute the 2d bounding box. | |
| double | DiscretizationTolerance () const |
| Returns the tolerance used for curve discretization. | |
| void | SetDiscretizationTolerance (double theTolerance) |
| Sets the tolerance used for curve discretization. | |
Public Member Functions inherited from cadex::BaseObject | |
| size_t | Id () const |
| Return unique identifier of public object. | |
| internal::BaseObjectImpl * | Impl () const |
| bool | IsNull () const |
| operator bool () const | |
| template<typename T > | |
| bool | IsOfType () const |
| template<typename T > | |
| T * | Impl () const |
| Reserved for internal use. | |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::BaseObject | |
| BaseObject (const ImplType &theImpl) | |
Defines parameters for computing an oriented 2d bounding box.
| BoundingBox2dParameters::OptimizationCriterion cadex::Measurements::BoundingBox2dParameters::Criterion | ( | ) | const |
Returns the optimization criterion used to compute the 2d bounding box.
The default value is OptimizationCriterion::Area .
| double cadex::Measurements::BoundingBox2dParameters::DiscretizationTolerance | ( | ) | const |
Returns the tolerance used for curve discretization.
This parameter is used when computing a 2d bounding box for a CurveSet. The default value is 0.001.
| void cadex::Measurements::BoundingBox2dParameters::SetCriterion | ( | OptimizationCriterion | theCriterion | ) |
Sets the optimization criterion used to compute the 2d bounding box.
| void cadex::Measurements::BoundingBox2dParameters::SetDiscretizationTolerance | ( | double | theTolerance | ) |
Sets the tolerance used for curve discretization.
This parameter is used when computing a 2d bounding box for a CurveSet.