Hide menu
Loading...
Searching...
No Matches

Describes a machining hole of a specified type. More...

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

Public Types

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
 

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

Protected Member Functions

 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.
 

Additional Inherited Members

- Protected Attributes inherited from cadex::MTKBase_Feature
ImplPtrType myImpl
 

Detailed Description

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.

Hole types

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

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

Constructor & Destructor Documentation

◆ Machining_Hole() [1/4]

cadex::Machining_Hole::Machining_Hole ( )

Constructor.

◆ Machining_Hole() [2/4]

cadex::Machining_Hole::Machining_Hole ( double theRadius,
double theDepth,
Machining_HoleType theType )

Constructor.

Creates a machining hole from radius, depth and machining hole type.

◆ Machining_Hole() [3/4]

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.

◆ Machining_Hole() [4/4]

cadex::Machining_Hole::Machining_Hole ( ImplType theImpl)
explicitprotected

Reserved for internal use.

Constructor.

For internal use.

Member Function Documentation

◆ CompareType()

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

Returnstrue if theFeature is a machining hole.

Examples
machining/feature_recognizer/Program.cs.

◆ SetType()

void cadex::Machining_Hole::SetType ( Machining_HoleType theType)

Sets type of the machining hole.

See also
Type()

◆ Type()

Machining_HoleType cadex::Machining_Hole::Type ( ) const

Returns type of machining hole.

See also
SetType()