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

Describes a machining pocket. A pocket is a feature obtained by milling the material inside an arbitrarily closed boundary on a flat surface of a workpiece removed to a fixed depth. More...

Inheritance diagram for cadex::Machining_Pocket:
cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature

Public Member Functions

 Machining_Pocket ()
 Constructor.
 
 Machining_Pocket (double theWidth, double theLength, double theDepth, Machining_PocketType theType)
 Constructor.
 
double Width () const
 
void SetWidth (double theWidth)
 
double Length () const
 
void SetLength (double theLength)
 
double Depth () const
 
void SetDepth (double theDepth)
 
bool HasAxis () const
 
const Geom::Axis1dAxis () const
 
void SetAxis (const Geom::Axis1d &theAxis)
 
Machining_PocketType Type () const
 
void SetType (Machining_PocketType theType)
 
- 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 Pocket.
 
- 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::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::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 machining pocket. A pocket is a feature obtained by milling the material inside an arbitrarily closed boundary on a flat surface of a workpiece removed to a fixed depth.

Shape() method returns ModelData::Shell for this class.

Pocket

Pocket have the following basic parameters: width in mm, length in mm, depth in mm and axis.

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

Constructor & Destructor Documentation

◆ Machining_Pocket()

cadex::Machining_Pocket::Machining_Pocket ( double theWidth,
double theLength,
double theDepth,
Machining_PocketType theType )

Constructor.

Creates a machining Pocket from width, length, depth and type.

Member Function Documentation

◆ Axis()

const Geom::Axis1d & cadex::Machining_Pocket::Axis ( ) const

Returns z-axis of a pocket - the axis along which the depth is determined

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

◆ Depth()

double cadex::Machining_Pocket::Depth ( ) const

Returns the pocket depth in mm .

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

◆ HasAxis()

bool cadex::Machining_Pocket::HasAxis ( ) const

Returns true if z-axis is determined for pocket

See also
Axis(), SetAxis()

◆ Length()

double cadex::Machining_Pocket::Length ( ) const

Returns the pocket length in mm .

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

◆ SetAxis()

void cadex::Machining_Pocket::SetAxis ( const Geom::Axis1d & theAxis)

Sets z-axis for pocket

See also
HasAxis(), Axis()

◆ SetDepth()

void cadex::Machining_Pocket::SetDepth ( double theDepth)

Sets depth for pocket in mm. The value must be more than zero.

See also
Depth()

◆ SetLength()

void cadex::Machining_Pocket::SetLength ( double theLength)

Sets length for pocket in mm. The value must be more than zero.

See also
Length()

◆ SetType()

void cadex::Machining_Pocket::SetType ( Machining_PocketType theType)

Sets type for pocket.

See also
Type()

◆ SetWidth()

void cadex::Machining_Pocket::SetWidth ( double theWidth)

Sets width for pocket in mm. The value must be more than zero.

See also
Width()

◆ Type()

Machining_PocketType cadex::Machining_Pocket::Type ( ) const

Returns the pocket type.

See also
SetType()
Examples
MTKConverter/Program.cs, and MTKConverter/main.cxx.

◆ Width()

double cadex::Machining_Pocket::Width ( ) const

Returns the pocket width in mm.

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