Hide menu
Loading...
Searching...
No Matches

Describes a boss. In CNC Machining a boss is a protrusion or raised area on a workpiece that is created by removing material around it using a milling cutter. The boss feature can be used for various purposes such as providing a location for fasteners, creating a bearing surface, or serving as a mounting point for other components. More...

Inheritance diagram for cadex::MTKBase_Boss:
cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature cadex::Molding_ScrewBoss

Public Types

typedef cadex::internal::MTKBaseImpl_Boss ImplType
 
typedef std::shared_ptr< ImplType > ImplPtrType
 
- Public Types inherited from cadex::MTKBase_ShapeFeature
typedef cadex::internal::MTKBaseImpl_ShapeFeature ImplType
 
typedef std::shared_ptr< ImplType > ImplPtrType
 
- Public Types inherited from cadex::MTKBase_Feature
typedef cadex::internal::MTKBaseImpl_Feature ImplType
 
typedef std::shared_ptr< ImplType > ImplPtrType
 

Public Member Functions

 MTKBase_Boss ()
 Constructor.
 
 MTKBase_Boss (double theWidth, double theLength, double theHeight)
 Constructor.
 
double Width () const
 
void SetWidth (double theWidth)
 
double Length () const
 
void SetLength (double theLength)
 
double Height () const
 
void SetHeight (double theHeight)
 
- Public Member Functions inherited from cadex::MTKBase_ShapeFeature
 MTKBase_ShapeFeature ()
 Constructor.
 
 MTKBase_ShapeFeature (const ModelData::Shape &theShape)
 Constructor.
 
const ModelData::ShapeShape () const
 
void SetShape (const ModelData::Shape &theShape)
 
- Public Member Functions inherited from cadex::MTKBase_Feature
 MTKBase_Feature ()
 Constructor.
 
 ~MTKBase_Feature ()
 Destructor.
 
void Nullify ()
 
bool IsNull () const
 
 operator bool () const
 Casts the object to the bool type.
 
template<typename T >
bool IsOfType () const
 
ImplType * Impl () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 
bool operator== (const MTKBase_Feature &theObject) const
 
bool operator!= (const MTKBase_Feature &theObject) const
 

Static Public Member Functions

static bool CompareType (const MTKBase_Feature &theFeature)
 Returnstrue if theFeature is a Boss.
 
- Static Public Member Functions inherited from cadex::MTKBase_ShapeFeature
static bool CompareType (const MTKBase_Feature &theFeature)
 Returnstrue if theFeature is a shape feature.
 

Protected Member Functions

 MTKBase_Boss (ImplPtrType theImpl)
 Reserved for internal use.
 
- Protected Member Functions inherited from cadex::MTKBase_ShapeFeature
 MTKBase_ShapeFeature (ImplPtrType theImpl)
 Reserved for internal use.
 
- Protected Member Functions inherited from cadex::MTKBase_Feature
 MTKBase_Feature (ImplPtrType theImpl)
 Reserved for internal use.
 

Additional Inherited Members

- Protected Attributes inherited from cadex::MTKBase_Feature
ImplPtrType myImpl
 

Detailed Description

Describes a boss. In CNC Machining a boss is a protrusion or raised area on a workpiece that is created by removing material around it using a milling cutter. The boss feature can be used for various purposes such as providing a location for fasteners, creating a bearing surface, or serving as a mounting point for other components.

Shape() method returns ModelData::Shell for this class.

Boss

Boss have the following basic parameters: width in mm, length in mm, height in mm.

Boss parameters
Examples
MTKConverter/Program.cs, MTKConverter/main.cxx, machining/feature_recognizer/Program.cs, machining/feature_recognizer/main.cxx, molding/feature_recognizer/Program.cs, and molding/feature_recognizer/main.cxx.

Constructor & Destructor Documentation

◆ MTKBase_Boss()

cadex::MTKBase_Boss::MTKBase_Boss ( double theWidth,
double theLength,
double theHeight )

Constructor.

Creates a Boss from length, width and height.

Member Function Documentation

◆ Height()

double cadex::MTKBase_Boss::Height ( ) const

◆ Length()

double cadex::MTKBase_Boss::Length ( ) const

◆ SetHeight()

void cadex::MTKBase_Boss::SetHeight ( double theHeight)

Sets Height for boss in mm. The value must be more than zero.

See also
Height()

◆ SetLength()

void cadex::MTKBase_Boss::SetLength ( double theLength)

Sets length for boss in mm. The value must be more than zero.

See also
Length()

◆ SetWidth()

void cadex::MTKBase_Boss::SetWidth ( double theWidth)

Sets width for boss in mm. The value must be more than zero.

See also
Width()

◆ Width()

double cadex::MTKBase_Boss::Width ( ) const