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

Defines parameters used by Machining_FeatureRecognizer. More...

Inherits global.SystemIDisposable.

Public Member Functions

 Machining_FeatureRecognizerParameters (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
double ProfileRadiusThreshold ()
 
void SetProfileRadiusThreshold (double theProfileRadiusThreshold)
 
double FilletRadiusThreshold ()
 
void SetFilletRadiusThreshold (double theFilletRadiusThreshold)
 
double HoleRadiusThreshold ()
 
void SetHoleRadiusThreshold (double theHoleRadThreshold)
 
double PlanarAngleThreshold ()
 
void SetPlanarAngleThreshold (double thePlanarAngleThreshold)
 
double MaxHoleSpacedPartsDistanceToDiameterRatio ()
 
void SetMaxHoleSpacedPartsDistanceToDiameterRatio (double theRatio)
 
cadex.Machining_OperationType Operation ()
 
void SetOperation (cadex.Machining_OperationType theOperation)
 
bool IsAxisDefined ()
 
cadex.Geom.Axis1d Axis ()
 
void SetAxis (cadex.Geom.Axis1d theAxis)
 
double MinPartialHoleMaterialPercent ()
 
void SetMinPartialHoleMaterialPercent (double theNewMinPartialHoleMaterialPercent)
 
bool IgnoreHolesOnTurningAxis ()
 
void SetIgnoreHolesOnTurningAxis (bool theIgnoreHolesOnTurningAxis)
 
double MaxGrooveDepth ()
 
void SetMaxGrooveDepth (double theMaxGrooveDepth)
 
double MaxGrooveWidth ()
 
void SetMaxGrooveWidth (double theMaxGrooveWidth)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

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.

Member Function Documentation

◆ Axis()

cadex.Geom.Axis1d cadex.Machining_FeatureRecognizerParameters.Axis ( )
inline

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 ( )
inline

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 ( )
inline

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 ( )
inline

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 ( )
inline

Returns true if axis is determined.

See also
Axis(), SetAxis()

◆ MaxGrooveDepth()

double cadex.Machining_FeatureRecognizerParameters.MaxGrooveDepth ( )
inline

Returns a max depth of the groove to be recognized in mm .

The default value is 3 .

See also
SetMaxGrooveDepth()

◆ MaxGrooveWidth()

double cadex.Machining_FeatureRecognizerParameters.MaxGrooveWidth ( )
inline

Returns a max width of the groove to be recognized in mm .

The default value is 5 .

See also
SetMaxGrooveWidth()

◆ MaxHoleSpacedPartsDistanceToDiameterRatio()

double cadex.Machining_FeatureRecognizerParameters.MaxHoleSpacedPartsDistanceToDiameterRatio ( )
inline

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 ( )
inline

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

cadex.Machining_OperationType cadex.Machining_FeatureRecognizerParameters.Operation ( )
inline

Returns machining operation type

See also
SetOperation()

◆ PlanarAngleThreshold()

double cadex.Machining_FeatureRecognizerParameters.PlanarAngleThreshold ( )
inline

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 ( )
inline

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 ( cadex.Geom.Axis1d theAxis)
inline

Sets axis.

See also
IsAxisDefined(), Axis()

◆ SetFilletRadiusThreshold()

void cadex.Machining_FeatureRecognizerParameters.SetFilletRadiusThreshold ( double theFilletRadiusThreshold)
inline

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

See also
FilletRadiusThreshold()

◆ SetIgnoreHolesOnTurningAxis()

void cadex.Machining_FeatureRecognizerParameters.SetIgnoreHolesOnTurningAxis ( bool theIgnoreHolesOnTurningAxis)
inline

Sets whether holes on the turning axis are ignored.

See also
IgnoreHolesOnTurningAxis()

◆ SetMaxGrooveDepth()

void cadex.Machining_FeatureRecognizerParameters.SetMaxGrooveDepth ( double theMaxGrooveDepth)
inline

Sets max depth of the groove to be recognized in mm .

See also
MaxGrooveDepth()

◆ SetMaxGrooveWidth()

void cadex.Machining_FeatureRecognizerParameters.SetMaxGrooveWidth ( double theMaxGrooveWidth)
inline

Sets max width of the groove to be recognized in mm .

See also
MaxGrooveWidth()

◆ SetMaxHoleSpacedPartsDistanceToDiameterRatio()

void cadex.Machining_FeatureRecognizerParameters.SetMaxHoleSpacedPartsDistanceToDiameterRatio ( double theRatio)
inline

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

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 ( cadex.Machining_OperationType theOperation)
inline

◆ SetPlanarAngleThreshold()

void cadex.Machining_FeatureRecognizerParameters.SetPlanarAngleThreshold ( double thePlanarAngleThreshold)
inline

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

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

See also
PlanarAngleThreshold()