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

Describes a rib. More...

Inheritance diagram for cadex::Molding_Rib:
cadex::MTKBase_ShapeFeature cadex::MTKBase_Feature

Public Member Functions

 Molding_Rib ()
 Constructor.
 
 Molding_Rib (double theLength, double theHeight, double theThickness)
 Constructor.
 
double Length () const
 
void SetLength (double theLength)
 
double Height () const
 
void SetHeight (double theHeight)
 
double Thickness () const
 
void SetThickness (double theThickness)
 
double DraftAngle () const
 
void SetDraftAngle (double theDraftAngle)
 
- 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 Rib.
 
- 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 rib.

In Injection Molding, a "rib" feature refers to a thin, wall-like protrusion from the main body of the part that is designed to add support or strength to the structure. Ribs are used to prevent distortion and maintain the strength of the part without increasing the amount of plastic material used, which keeps cost and weight low.

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

"Ribs"

Rib has the following basic parameters: length in mm, height in mm, thickness in mm, and draft angle in radians.

Rib dimensions
Rib draft angle
Examples
MTKConverter/Program.cs, MTKConverter/main.cxx, molding/feature_recognizer/Program.cs, and molding/feature_recognizer/main.cxx.

Constructor & Destructor Documentation

◆ Molding_Rib() [1/2]

cadex::Molding_Rib::Molding_Rib ( )

Constructor.

Creates an empty Rib.

◆ Molding_Rib() [2/2]

cadex::Molding_Rib::Molding_Rib ( double theLength,
double theHeight,
double theThickness )

Constructor.

Creates a Rib from shape, length, height, and thickness.

Member Function Documentation

◆ DraftAngle()

double cadex::Molding_Rib::DraftAngle ( ) const

Returns the rib draft angle in radians.

See also
SetDraftAngle()
Examples
MTKConverter/Program.cs, and molding/feature_recognizer/Program.cs.

◆ Height()

double cadex::Molding_Rib::Height ( ) const

Returns the rib height in mm.

See also
SetHeight()
Examples
MTKConverter/Program.cs, and molding/feature_recognizer/Program.cs.

◆ Length()

double cadex::Molding_Rib::Length ( ) const

Returns the rib length in mm.

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

◆ SetDraftAngle()

void cadex::Molding_Rib::SetDraftAngle ( double theDraftAngle)

Sets draft angle for the rib in radians. The value must be more or equal zero.

See also
DraftAngle()

◆ SetHeight()

void cadex::Molding_Rib::SetHeight ( double theHeight)

Sets height for the rib in mm. The value must be more than zero.

See also
Height()

◆ SetLength()

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

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

See also
Length()

◆ SetThickness()

void cadex::Molding_Rib::SetThickness ( double theThickness)

Sets thickness for the rib in mm. The value must be more than zero.

See also
Thickness()

◆ Thickness()

double cadex::Molding_Rib::Thickness ( ) const

Returns the rib thickness in mm.

See also
SetThickness()
Examples
MTKConverter/Program.cs, and molding/feature_recognizer/Program.cs.