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

Describes a threaded hole. 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
 Returns the threaded hole minor radius in mm .
 
void SetMinorRadius (double theMinorRadius)
 Sets the threaded hole minor radius in mm .
 
double MajorRadius () const
 Returns the threaded hole major radius in mm .
 
void SetMajorRadius (double theMinorRadius)
 Sets the threaded hole major radius in mm .
 
double ThreadLength () const
 Returns the threaded hole thread length in mm .
 
void SetThreadLength (double theThreadLength)
 Sets the threaded hole thread length in mm .
 
double Pitch () const
 Returns the threaded hole pitch in mm .
 
void SetPitch (double thePitch)
 Sets the threaded hole pitch in mm .
 
- 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
 Returns type of machining hole.
 
void SetType (Machining_HoleType theType)
 Sets type of the machining hole.
 
- 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
 Returns hole radius in mm .
 
void SetRadius (double theRadius)
 Sets radius for hole in mm .
 
double Depth () const
 Returns hole depth in mm .
 
void SetDepth (double theDepth)
 Sets depth for hole in mm .
 
bool HasAxis () const
 Returns true if axis is determined for hole.
 
const Geom::Axis3dAxis () const
 Returns hole axis.
 
void SetAxis (const Geom::Axis3d &theAxis)
 Sets axis for hole.
 
- Public Member Functions inherited from cadex::MTKBase_ShapeFeature
 MTKBase_ShapeFeature ()
 Constructor.
 
 MTKBase_ShapeFeature (const ModelData::Shape &theShape)
 Constructor.
 
const ModelData::ShapeShape () const
 Returns shape of the feature.
 
void SetShape (const ModelData::Shape &theShape)
 Sets shape of the feature.
 
- Public Member Functions inherited from cadex::MTKBase_Feature
 MTKBase_Feature ()
 Constructor.
 
 ~MTKBase_Feature ()
 Destructor.
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified.
 
 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
machining/feature_recognizer/Program.cs, and machining/feature_recognizer/main.cxx.

Constructor & Destructor Documentation

◆ Machining_ThreadedHole() [1/2]

cadex::Machining_ThreadedHole::Machining_ThreadedHole ( )

Constructor.

◆ Machining_ThreadedHole() [2/2]

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

◆ CompareType()

bool cadex::Machining_ThreadedHole::CompareType ( const MTKBase_Feature & theFeature)
static

Returns true if theFeature is a machining threaded hole.

Examples
machining/feature_recognizer/Program.cs.

◆ MajorRadius()

double cadex::Machining_ThreadedHole::MajorRadius ( ) const

Returns the threaded hole major radius in mm .

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

◆ MinorRadius()

double cadex::Machining_ThreadedHole::MinorRadius ( ) const

Returns the threaded hole minor radius in mm .

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

◆ Pitch()

double cadex::Machining_ThreadedHole::Pitch ( ) const

Returns the threaded hole pitch in mm .

See also
SetPitch()
Examples
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
machining/feature_recognizer/Program.cs.