Describes a bend in sheet metal. More...
Public Types | |
typedef cadex::internal::SheetMetalImpl_Bend | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
![]() | |
typedef cadex::internal::MTKBaseImpl_ShapeFeature | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
![]() | |
typedef cadex::internal::MTKBaseImpl_Feature | ImplType |
typedef std::shared_ptr< ImplType > | ImplPtrType |
Public Member Functions | |
SheetMetal_Bend () | |
Constructor. | |
SheetMetal_Bend (double theRadius, double theAngle, double theWidth) | |
Constructor. | |
double | Radius () const |
void | SetRadius (double theRadius) |
double | Angle () const |
void | SetAngle (double theAngle) |
double | Width () const |
void | SetWidth (double theWidth) |
double | Length () const |
Returns the length of resulting bend (not blank sheet metal model). Length value returns in mm . | |
![]() | |
MTKBase_ShapeFeature () | |
Constructor. | |
MTKBase_ShapeFeature (const ModelData::Shape &theShape) | |
Constructor. | |
const ModelData::Shape & | Shape () const |
void | SetShape (const ModelData::Shape &theShape) |
![]() | |
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 bend. | |
![]() | |
static bool | CompareType (const MTKBase_Feature &theFeature) |
Returnstrue if theFeature is a shape feature. | |
Protected Member Functions | |
SheetMetal_Bend (ImplPtrType theImpl) | |
![]() | |
MTKBase_ShapeFeature (ImplPtrType theImpl) | |
Reserved for internal use. | |
![]() | |
MTKBase_Feature (ImplPtrType theImpl) | |
Reserved for internal use. | |
Additional Inherited Members | |
![]() | |
ImplPtrType | myImpl |
Describes a bend in sheet metal.
Bending is one of the most common sheet metal fabrication operations. Also known as press braking, flanging, die bending, folding and edging, this method is used to deform a material to an angular shape.
Shape() method returns ModelData::Shell for this class.
Bends have the following basic parameters: radius in mm, angle in radians, width in mm and length in mm.
cadex::SheetMetal_Bend::SheetMetal_Bend | ( | double | theRadius, |
double | theAngle, | ||
double | theWidth ) |
Constructor.
Creates a bend with specified radius, angle and width.
double cadex::SheetMetal_Bend::Angle | ( | ) | const |
Returns the bend angle in radians.
double cadex::SheetMetal_Bend::Radius | ( | ) | const |
Returns the bend radius in mm .
void cadex::SheetMetal_Bend::SetAngle | ( | double | theAngle | ) |
Sets bend angle in radians. The value must be more than zero, otherwise nothing happens.
void cadex::SheetMetal_Bend::SetRadius | ( | double | theRadius | ) |
Sets bend radius in mm . The value must be more than zero, otherwise nothing happens.
void cadex::SheetMetal_Bend::SetWidth | ( | double | theWidth | ) |
Sets bend width in mm . The value must be more than zero, otherwise nothing happens.
double cadex::SheetMetal_Bend::Width | ( | ) | const |
Returns the bend width in mm .