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

Defines parameters for computing an oriented 2d bounding box. More...

Inheritance diagram for cadex::Measurements::BoundingBox2dParameters:
cadex::BaseObject

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)
 

Detailed Description

Defines parameters for computing an oriented 2d bounding box.

Member Function Documentation

◆ Criterion()

BoundingBox2dParameters::OptimizationCriterion cadex::Measurements::BoundingBox2dParameters::Criterion ( ) const

Returns the optimization criterion used to compute the 2d bounding box.

The default value is OptimizationCriterion::Area .

See also
SetCriterion()

◆ DiscretizationTolerance()

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.

See also
SetDiscretizationTolerance()

◆ SetCriterion()

void cadex::Measurements::BoundingBox2dParameters::SetCriterion ( OptimizationCriterion theCriterion)

Sets the optimization criterion used to compute the 2d bounding box.

See also
Criterion()

◆ SetDiscretizationTolerance()

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.

See also
DiscretizationTolerance()