Defines parameters used by Machining_FeatureRecognizer. More...
Public Types | |
typedef cadex::internal::MachiningImpl_FeatureRecognizerParameters | ImplType |
Public Member Functions | |
Machining_FeatureRecognizerParameters () | |
Constructor. | |
double | ProfileRadiusThreshold () const |
void | SetProfileRadiusThreshold (double theProfileRadiusThreshold) |
double | FilletRadiusThreshold () const |
void | SetFilletRadiusThreshold (double theFilletRadiusThreshold) |
double | HoleRadiusThreshold () const |
void | SetHoleRadiusThreshold (double theHoleRadThreshold) |
double | PlanarAngleThreshold () const |
void | SetPlanarAngleThreshold (double thePlanarAngleThreshold) |
double | MaxHoleSpacedPartsDistanceToDiameterRatio () const |
void | SetMaxHoleSpacedPartsDistanceToDiameterRatio (double theRatio) |
Machining_OperationType | Operation () const |
void | SetOperation (Machining_OperationType theOperation) |
bool | IsAxisDefined () const |
const Geom::Axis1d & | Axis () const |
void | SetAxis (const Geom::Axis1d &theAxis) |
double | MinPartialHoleMaterialPercent () const |
void | SetMinPartialHoleMaterialPercent (double theNewMinPartialHoleMaterialPercent) |
bool | IgnoreHolesOnTurningAxis () const |
void | SetIgnoreHolesOnTurningAxis (bool theIgnoreHolesOnTurningAxis) |
ImplType * | Impl () const |
Defines parameters used by Machining_FeatureRecognizer.
Contains parameters used by Machining Feature Recognizer (Machining_FeatureRecognizer) and allows to set parameters used to define different types of machining faces and holes.
MTK supports operation types (defined by the Machining_OperationType enumeration) defined in the following table:
Milling operation | The process of machining using rotary cutters to remove material by advancing a cutter into a workpiece. This may be done varying direction on one or several axes, cutter head speed, and pressure. | ![]() |
Lathe + Milling operation | Involve rotating a workpiece against a single-bladed cutting tool. Milling operation could be used for post processing. | ![]() |
cadex::Machining_FeatureRecognizerParameters::Machining_FeatureRecognizerParameters | ( | ) |
Constructor.
Sets default parameter values.
const Geom::Axis1d & cadex::Machining_FeatureRecognizerParameters::Axis | ( | ) | const |
Returns axis which will be used as turning axis (for Machining_OperationType::Machining_OT_LatheMilling) or z-axis (for Machining_OperationType::Machining_OT_Milling)
![]()
Milling z-axis | ![]()
Turning axis |
double cadex::Machining_FeatureRecognizerParameters::FilletRadiusThreshold | ( | ) | const |
Returns fillet radius threshold in mm. Used to distinguish fillets for concave faces.
The default value is 12.5.
double cadex::Machining_FeatureRecognizerParameters::HoleRadiusThreshold | ( | ) | const |
Returns hole radius threshold in mm. Used to distinguish holes when analyzing closed faces.
The default value is 25.
bool cadex::Machining_FeatureRecognizerParameters::IgnoreHolesOnTurningAxis | ( | ) | const |
Returns true if holes on the turning axis are ignored. Thier faces are recognized as bore faces.
The default value is true.
bool cadex::Machining_FeatureRecognizerParameters::IsAxisDefined | ( | ) | const |
double cadex::Machining_FeatureRecognizerParameters::MaxHoleSpacedPartsDistanceToDiameterRatio | ( | ) | const |
Returns the maximum hole spaced parts distance to hole diameter ratio. Hole spaced parts distance is a distance between fully separated hole shapes lying on the same axis and have same diameter. If the distance less or equal than ratio multiplied by diameter, then all separated hole shapes will be recognized as a single hole.
double cadex::Machining_FeatureRecognizerParameters::MinPartialHoleMaterialPercent | ( | ) | const |
Returns min material percent for a partail hole. Used to discard partial holes with too low material percent.
The default value is 0.2 (20%).
Machining_OperationType cadex::Machining_FeatureRecognizerParameters::Operation | ( | ) | const |
Returns machining operation type
double cadex::Machining_FeatureRecognizerParameters::PlanarAngleThreshold | ( | ) | const |
Returns planar angle threshold in radians. Used to distinguish between flat face and side milled surfaces.
The default value is 0.78539816339 (45 deg).
double cadex::Machining_FeatureRecognizerParameters::ProfileRadiusThreshold | ( | ) | const |
Returns profile radius threshold in mm. Used to distinguish profile surfaces for convex faces.
The default value is 25.
void cadex::Machining_FeatureRecognizerParameters::SetAxis | ( | const Geom::Axis1d & | theAxis | ) |
Sets axis.
void cadex::Machining_FeatureRecognizerParameters::SetFilletRadiusThreshold | ( | double | theFilletRadiusThreshold | ) |
Sets fillet radius threshold in mm. The value must be more or equal than zero.
void cadex::Machining_FeatureRecognizerParameters::SetHoleRadiusThreshold | ( | double | theHoleRadiusThreshold | ) |
Sets hole radius threshold in mm. The value must be more or equal than zero.
void cadex::Machining_FeatureRecognizerParameters::SetIgnoreHolesOnTurningAxis | ( | bool | theIgnoreHolesOnTurningAxis | ) |
Sets whether holes on the turning axis are ignored.
void cadex::Machining_FeatureRecognizerParameters::SetMaxHoleSpacedPartsDistanceToDiameterRatio | ( | double | theRatio | ) |
Sets maximum hole spaced parts distance to hole diameter ratio. theRatio must be more or equal than zero.
void cadex::Machining_FeatureRecognizerParameters::SetMinPartialHoleMaterialPercent | ( | double | theNewMinPartialHoleMaterialPercent | ) |
Sets min material percent for partail hole recognition. The value must be more or equal than zero and less or equal than one.
void cadex::Machining_FeatureRecognizerParameters::SetOperation | ( | Machining_OperationType | theOperation | ) |
Sets machining operation type
void cadex::Machining_FeatureRecognizerParameters::SetPlanarAngleThreshold | ( | double | thePlanarAngleThreshold | ) |
Sets planar angle threshold in radians. The value must be more or equal than zero.
void cadex::Machining_FeatureRecognizerParameters::SetProfileRadiusThreshold | ( | double | theProfileRadiusThreshold | ) |
Sets profile radius threshold in mm. The value must be more or equal than zero.