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...
Public Types | |
typedef cadex::internal::MTKBaseImpl_Boss | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
![]() | |
typedef cadex::internal::MTKBaseImpl_ShapeFeature | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
![]() | |
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) |
![]() | |
MTKBase_ShapeFeature () | |
Constructor. | |
MTKBase_ShapeFeature (const ModelData::Shape &theShape) | |
Constructor. | |
const ModelData::Shape & | Shape () const |
void | SetShape (const ModelData::Shape &theShape) |
![]() | |
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 bool | CompareType (const MTKBase_Feature &theFeature) |
Returnstrue if theFeature is a shape feature. | |
Protected Member Functions | |
MTKBase_Boss (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
MTKBase_ShapeFeature (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
MTKBase_Feature (ImplPtrType theImpl) | |
Reserved for internal use. | |
Additional Inherited Members | |
![]() | |
ImplPtrType | myImpl |
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 have the following basic parameters: width in mm, length in mm, height in mm.
cadex::MTKBase_Boss::MTKBase_Boss | ( | double | theWidth, |
double | theLength, | ||
double | theHeight ) |
Constructor.
Creates a Boss from length, width and height.
double cadex::MTKBase_Boss::Height | ( | ) | const |
Returns the boss Height in mm .
double cadex::MTKBase_Boss::Length | ( | ) | const |
Returns the boss length in mm .
void cadex::MTKBase_Boss::SetHeight | ( | double | theHeight | ) |
Sets Height for boss in mm. The value must be more than zero.
void cadex::MTKBase_Boss::SetLength | ( | double | theLength | ) |
Sets length for boss in mm. The value must be more than zero.
void cadex::MTKBase_Boss::SetWidth | ( | double | theWidth | ) |
Sets width for boss in mm. The value must be more than zero.
double cadex::MTKBase_Boss::Width | ( | ) | const |
Returns the boss width in mm.