Hide menu
Loading...
Searching...
No Matches
cadex::Machining_FeatureRecognizerParameters Class Reference

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::Axis1dAxis () const
 
void SetAxis (const Geom::Axis1d &theAxis)
 
double MinPartialHoleMaterialPercent () const
 
void SetMinPartialHoleMaterialPercent (double theNewMinPartialHoleMaterialPercent)
 
bool IgnoreHolesOnTurningAxis () const
 
void SetIgnoreHolesOnTurningAxis (bool theIgnoreHolesOnTurningAxis)
 
ImplType * Impl () const
 

Detailed Description

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.

Operation types

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.
Examples
machining/dfm_analyzer/Program.cs, and machining/feature_recognizer/Program.cs.

Constructor & Destructor Documentation

◆ Machining_FeatureRecognizerParameters()

cadex::Machining_FeatureRecognizerParameters::Machining_FeatureRecognizerParameters ( )

Constructor.

Sets default parameter values.

Member Function Documentation

◆ Axis()

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
See also
IsAxisDefined(), SetAxis()

◆ FilletRadiusThreshold()

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.

See also
SetFilletRadiusThreshold()

◆ HoleRadiusThreshold()

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.

See also
SetHoleRadiusThreshold()

◆ IgnoreHolesOnTurningAxis()

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.

See also
SetIgnoreHolesOnTurningAxis()

◆ IsAxisDefined()

bool cadex::Machining_FeatureRecognizerParameters::IsAxisDefined ( ) const

Returns true if axis is determined.

See also
Axis(), SetAxis()

◆ MaxHoleSpacedPartsDistanceToDiameterRatio()

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.

See also
SetMaxHoleSpacedPartsDistanceToDiameterRatio()

◆ MinPartialHoleMaterialPercent()

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%).

See also
SetMinPartialHoleMaterialPercent()

◆ Operation()

Machining_OperationType cadex::Machining_FeatureRecognizerParameters::Operation ( ) const

Returns machining operation type

See also
SetOperation()

◆ PlanarAngleThreshold()

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).

See also
SetPlanarAngleThreshold()

◆ ProfileRadiusThreshold()

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.

See also
SetProfileRadiusThreshold()

◆ SetAxis()

void cadex::Machining_FeatureRecognizerParameters::SetAxis ( const Geom::Axis1d & theAxis)

Sets axis.

See also
IsAxisDefined(), Axis()

◆ SetFilletRadiusThreshold()

void cadex::Machining_FeatureRecognizerParameters::SetFilletRadiusThreshold ( double theFilletRadiusThreshold)

Sets fillet radius threshold in mm. The value must be more or equal than zero.

See also
FilletRadiusThreshold()

◆ SetHoleRadiusThreshold()

void cadex::Machining_FeatureRecognizerParameters::SetHoleRadiusThreshold ( double theHoleRadiusThreshold)

Sets hole radius threshold in mm. The value must be more or equal than zero.

See also
HoleRadiusThreshold()

◆ SetIgnoreHolesOnTurningAxis()

void cadex::Machining_FeatureRecognizerParameters::SetIgnoreHolesOnTurningAxis ( bool theIgnoreHolesOnTurningAxis)

Sets whether holes on the turning axis are ignored.

See also
IgnoreHolesOnTurningAxis()

◆ SetMaxHoleSpacedPartsDistanceToDiameterRatio()

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.

See also
MaxHoleSpacedPartsDistanceToDiameterRatio()

◆ SetMinPartialHoleMaterialPercent()

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.

See also
MinPartialHoleMaterialPercent()

◆ SetOperation()

void cadex::Machining_FeatureRecognizerParameters::SetOperation ( Machining_OperationType theOperation)

◆ SetPlanarAngleThreshold()

void cadex::Machining_FeatureRecognizerParameters::SetPlanarAngleThreshold ( double thePlanarAngleThreshold)

Sets planar angle threshold in radians. The value must be more or equal than zero.

See also
PlanarAngleThreshold()

◆ SetProfileRadiusThreshold()

void cadex::Machining_FeatureRecognizerParameters::SetProfileRadiusThreshold ( double theProfileRadiusThreshold)

Sets profile radius threshold in mm. The value must be more or equal than zero.

See also
PlanarAngleThreshold()