Hide menu
Loading...
Searching...
No Matches
cadex::Machining_ThreadedHole Class Reference

Describes a threaded hole. A threaded hole is a cylindrical hole with a helical thread (groove) machined on its inner surface. More...

Inheritance diagram for cadex::Machining_ThreadedHole:
cadex::Machining_Hole cadex::MTKBase_Hole cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature

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)
 
- Public Member Functions inherited from cadex::Machining_Hole
 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)
 
- Public Member Functions inherited from cadex::MTKBase_Hole
 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::Axis3dAxis () const
 
void SetAxis (const Geom::Axis3d &theAxis)
 
- 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)
 Returns true if theFeature is a machining threaded hole.
 
- Static Public Member Functions inherited from cadex::Machining_Hole
static bool CompareType (const MTKBase_Feature &theFeature)
 Returnstrue if theFeature is a machining hole.
 
- Static Public Member Functions inherited from cadex::MTKBase_Hole
static bool CompareType (const MTKBase_Feature &theFeature)
 Returns true if theFeature is a hole.
 
- Static Public Member Functions inherited from cadex::MTKBase_ShapeFeature
static bool CompareType (const MTKBase_Feature &theFeature)
 Returnstrue if theFeature is a shape feature.
 

Additional Inherited Members

- Public Types inherited from cadex::Machining_Hole
typedef std::shared_ptr< internal::MachiningImpl_Hole > ImplType
 
- Public Types inherited from cadex::MTKBase_Hole
typedef cadex::internal::MTKBaseImpl_Hole 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
 
- Protected Member Functions inherited from cadex::Machining_Hole
 Machining_Hole (ImplType theImpl)
 Reserved for internal use.
 
- Protected Member Functions inherited from cadex::MTKBase_Hole
 MTKBase_Hole (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.
 
- Protected Attributes inherited from cadex::MTKBase_Feature
ImplPtrType myImpl
 

Detailed Description

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

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.

Threaded hole parameters

Threaded Hole types

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

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

Constructor & Destructor Documentation

◆ Machining_ThreadedHole()

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.

Member Function Documentation

◆ MajorRadius()

double cadex::Machining_ThreadedHole::MajorRadius ( ) const

Returns the threaded hole major radius in mm .

See also
SetMajorRadius()
Examples
MTKConverter/Program.cs, and machining/feature_recognizer/Program.cs.

◆ MinorRadius()

double cadex::Machining_ThreadedHole::MinorRadius ( ) const

Returns the threaded hole minor radius in mm .

See also
SetMinorRadius()
Examples
MTKConverter/Program.cs, and machining/feature_recognizer/Program.cs.

◆ Pitch()

double cadex::Machining_ThreadedHole::Pitch ( ) const

Returns the threaded hole pitch in mm .

See also
SetPitch()
Examples
MTKConverter/Program.cs, and machining/feature_recognizer/Program.cs.

◆ SetMajorRadius()

void cadex::Machining_ThreadedHole::SetMajorRadius ( double theMajorRadius)

Sets the threaded hole major radius in mm . The value must be greater than zero.

See also
MajorRadius()

◆ SetMinorRadius()

void cadex::Machining_ThreadedHole::SetMinorRadius ( double theMinorRadius)

Sets the threaded hole minor radius in mm . The value must be greater than zero.

See also
MinorRadius()

◆ SetPitch()

void cadex::Machining_ThreadedHole::SetPitch ( double thePitch)

Sets the threaded hole pitch in mm . The value must be greater than zero.

See also
Pitch()

◆ SetThreadLength()

void cadex::Machining_ThreadedHole::SetThreadLength ( double theThreadLength)

Sets the threaded hole thread length in mm . The value must be greater than zero.

See also
ThreadLength()

◆ ThreadLength()

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.

See also
SetThreadLength()
Depth()
Examples
MTKConverter/Program.cs, and machining/feature_recognizer/Program.cs.