Describes a machining hole of a specified type. Hole is a cylindrical feature that can be made by cutting from the workpiece by a rotating cutting tool. More...
Public Member Functions | |
Machining_Hole () | |
Constructor. | |
Machining_Hole (double theRadius, double theDepth, Machining_HoleType theType) | |
Constructor. | |
Machining_Hole (double theRadius, double theDepth, const Geom::Axis3d &theAxis, Machining_HoleType theType) | |
Constructor. | |
Machining_HoleType | Type () const |
void | SetType (Machining_HoleType theType) |
![]() | |
MTKBase_Hole () | |
Constructor. | |
MTKBase_Hole (double theRadius, double theDepth) | |
Constructor. | |
MTKBase_Hole (double theRadius, double theDepth, const Geom::Axis3d &theAxis) | |
Constructor. | |
double | Radius () const |
void | SetRadius (double theRadius) |
double | Depth () const |
void | SetDepth (double theDepth) |
bool | HasAxis () const |
const Geom::Axis3d & | Axis () const |
void | SetAxis (const Geom::Axis3d &theAxis) |
![]() | |
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 machining hole. | |
![]() | |
static bool | CompareType (const MTKBase_Feature &theFeature) |
Returns true if theFeature is a hole. | |
![]() | |
static bool | CompareType (const MTKBase_Feature &theFeature) |
Returnstrue if theFeature is a shape feature. | |
Additional Inherited Members | |
![]() | |
typedef cadex::internal::MTKBaseImpl_Hole | 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 |
![]() | |
MTKBase_Hole (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
MTKBase_ShapeFeature (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
MTKBase_Feature (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
ImplPtrType | myImpl |
Describes a machining hole of a specified type. Hole is a cylindrical feature that can be made by cutting from the workpiece by a rotating cutting tool.
The hole can be either a through hole or a blind hole. A through hole is a complete hole that you can see on both sides of the object, while a blind hole is only drilled, milled or reamed to get a specific depth. The blind hole can have a flat bottom or pointed end due to the ending point of the tool. Also, holes can be made at the edge of the material - partial holes, in this case only part of the hole is in the material.
Shape() method returns ModelData::Shell for this class.
MTK supports hole types (defined by the Machining_HoleType enumeration) defined in the following table:
Through hole | A hole that goes through the entire workpiece. | ![]() |
Flat Bottom hole | A hole machined to have a flat reflecting surface at the hole bottom | ![]() |
Blind hole | A hole does not pass through the entire workpiece | ![]() |
Partial hole | An open hole drilled on the part side. | ![]() |
The hole type is returned by Type().
cadex::Machining_Hole::Machining_Hole | ( | double | theRadius, |
double | theDepth, | ||
Machining_HoleType | theType ) |
Constructor.
Creates a machining hole from radius, depth and machining hole type.
cadex::Machining_Hole::Machining_Hole | ( | double | theRadius, |
double | theDepth, | ||
const Geom::Axis3d & | theAxis, | ||
Machining_HoleType | theType ) |
Constructor.
Creates a machining hole from radius, depth, axis and machining hole type.
void cadex::Machining_Hole::SetType | ( | Machining_HoleType | theType | ) |
Sets type of the machining hole.
Machining_HoleType cadex::Machining_Hole::Type | ( | ) | const |
Returns type of machining hole.