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

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

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

Public Member Functions

 Machining_Hole (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Machining_Hole (double theRadius, double theDepth, cadex.Machining_HoleType theType)
 Constructor.
 
 Machining_Hole (double theRadius, double theDepth, cadex.Geom.Axis3d theAxis, cadex.Machining_HoleType theType)
 Constructor.
 
cadex.Machining_HoleType Type ()
 
void SetType (cadex.Machining_HoleType theType)
 
- Public Member Functions inherited from cadex.MTKBase_Hole
 MTKBase_Hole (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 MTKBase_Hole ()
 Constructor.
 
 MTKBase_Hole (double theRadius, double theDepth)
 Constructor.
 
 MTKBase_Hole (double theRadius, double theDepth, cadex.Geom.Axis3d theAxis)
 Constructor.
 
double Radius ()
 
void SetRadius (double theRadius)
 
double Depth ()
 
void SetDepth (double theDepth)
 
bool HasAxis ()
 
cadex.Geom.Axis3d Axis ()
 
void SetAxis (cadex.Geom.Axis3d theAxis)
 
- Public Member Functions inherited from cadex.MTKBase_ShapeFeature
 MTKBase_ShapeFeature (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 MTKBase_ShapeFeature ()
 Constructor.
 
 MTKBase_ShapeFeature (cadex.ModelData.Shape theShape)
 Constructor.
 
cadex.ModelData.Shape Shape ()
 
void SetShape (cadex.ModelData.Shape theShape)
 
- Public Member Functions inherited from cadex.MTKBase_Feature
 MTKBase_Feature (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 MTKBase_Feature ()
 Constructor.
 
void Nullify ()
 
bool IsNull ()
 
bool IsEqual (cadex.MTKBase_Feature theObject)
 
bool IsNotEqual (cadex.MTKBase_Feature theObject)
 

Static Public Member Functions

static new bool CompareType (cadex.MTKBase_Feature theFeature)
 Returnstrue if theFeature is a machining hole.
 
static new cadex.Machining_Hole Cast (cadex.MTKBase_Feature theBase)
 
- Static Public Member Functions inherited from cadex.MTKBase_Hole
static new bool CompareType (cadex.MTKBase_Feature theFeature)
 Returns true if theFeature is a hole.
 
static new cadex.MTKBase_Hole Cast (cadex.MTKBase_Feature theBase)
 
- Static Public Member Functions inherited from cadex.MTKBase_ShapeFeature
static bool CompareType (cadex.MTKBase_Feature theFeature)
 Returnstrue if theFeature is a shape feature.
 
static cadex.MTKBase_ShapeFeature Cast (cadex.MTKBase_Feature theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.MTKBase_Hole
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from cadex.MTKBase_ShapeFeature
override void Dispose (bool disposing)
 

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/2]

cadex.Machining_Hole.Machining_Hole ( double theRadius,
double theDepth,
cadex.Machining_HoleType theType )
inline

Constructor.

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

◆ Machining_Hole() [2/2]

cadex.Machining_Hole.Machining_Hole ( double theRadius,
double theDepth,
cadex.Geom.Axis3d theAxis,
cadex.Machining_HoleType theType )
inline

Constructor.

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

Member Function Documentation

◆ Dispose()

override void cadex.Machining_Hole.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.MTKBase_Feature.

◆ SetType()

void cadex.Machining_Hole.SetType ( cadex.Machining_HoleType theType)
inline

Sets type of the machining hole.

See also
Type()

◆ Type()

cadex.Machining_HoleType cadex.Machining_Hole.Type ( )
inline

Returns type of machining hole.

See also
SetType()