Describes a threaded hole. A threaded hole is a cylindrical hole with a helical thread (groove) machined on its inner surface. More...
Public Member Functions | |
Machining_ThreadedHole () | |
Constructor. | |
Machining_ThreadedHole (double theMinorRadius, double theMajorRadius, double theThreadLength, double thePitch, double theDepth, const Geom::Axis3d &theAxis, Machining_HoleType theType) | |
Constructor. | |
double | MinorRadius () const |
void | SetMinorRadius (double theMinorRadius) |
double | MajorRadius () const |
void | SetMajorRadius (double theMinorRadius) |
double | ThreadLength () const |
void | SetThreadLength (double theThreadLength) |
double | Pitch () const |
void | SetPitch (double thePitch) |
![]() | |
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) |
Returns true if theFeature is a machining threaded hole. | |
![]() | |
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 std::shared_ptr< internal::MachiningImpl_Hole > | ImplType |
![]() | |
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 |
![]() | |
Machining_Hole (ImplType theImpl) | |
Reserved for internal use. | |
![]() | |
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 threaded hole. A threaded hole is a cylindrical hole with a helical thread (groove) machined on its inner surface.
The helical thread is designed to fit with the corresponding external threaded components, such as screws, bolts, and studs, providing for secure fastening and reliable mechanical connections.
Shape() method returns ModelData::Shell for this class.
Threaded Hole has the following basic parameters: minor radius in mm, major radius in mm, thread length in mm, pitch in mm, depth in mm.
MTK supports threaded hole types (see the Machining_HoleType enumeration):
Threaded Through hole | A hole that goes through the entire workpiece. | ![]() |
Threaded Flat Bottom hole | A hole machined to have a flat reflecting surface at the hole bottom | ![]() |
Threaded Blind hole | A hole does not pass through the entire workpiece | ![]() |
The hole type is returned by Type().
cadex::Machining_ThreadedHole::Machining_ThreadedHole | ( | double | theMinorRadius, |
double | theMajorRadius, | ||
double | theThreadLength, | ||
double | thePitch, | ||
double | theDepth, | ||
const Geom::Axis3d & | theAxis, | ||
Machining_HoleType | theType ) |
Constructor.
Creates a machining threaded hole from the minor radius, major radius, thread length, pitch, depth, axis and machining hole type.
double cadex::Machining_ThreadedHole::MajorRadius | ( | ) | const |
Returns the threaded hole major radius in mm .
double cadex::Machining_ThreadedHole::MinorRadius | ( | ) | const |
Returns the threaded hole minor radius in mm .
double cadex::Machining_ThreadedHole::Pitch | ( | ) | const |
Returns the threaded hole pitch in mm .
void cadex::Machining_ThreadedHole::SetMajorRadius | ( | double | theMajorRadius | ) |
Sets the threaded hole major radius in mm . The value must be greater than zero.
void cadex::Machining_ThreadedHole::SetMinorRadius | ( | double | theMinorRadius | ) |
Sets the threaded hole minor radius in mm . The value must be greater than zero.
void cadex::Machining_ThreadedHole::SetPitch | ( | double | thePitch | ) |
Sets the threaded hole pitch in mm . The value must be greater than zero.
void cadex::Machining_ThreadedHole::SetThreadLength | ( | double | theThreadLength | ) |
Sets the threaded hole thread length in mm . The value must be greater than zero.
double cadex::Machining_ThreadedHole::ThreadLength | ( | ) | const |
Returns the threaded hole thread length in mm . While Depth() returns the depth of the entire hole, ThreadLength() returns only the depth of the threaded part.