Describes a sheet metal bend relief. More...
Public Member Functions | |
SheetMetal_BendRelief () | |
Constructor. | |
SheetMetal_BendRelief (double theWidth, double theLength) | |
double | Width () const |
void | SetWidth (double theWidth) |
double | Length () const |
void | SetLength (double theLength) |
const ModelData::Shape & | Shape () const |
void | SetShape (const ModelData::Shape &theShape) |
bool | IsNull () const |
Returns true if the object is null. | |
operator bool () const | |
Describes a sheet metal bend relief.
Bend relief is a small incision cut into a piece of sheet metal to free the metal in between. It separates the material you want to be able to fold from the rest of the part.
Shape() method returns ModelData::Wire for this class.
Bend reliefs have the following basic parameters: width in mm and length in mm.
cadex::SheetMetal_BendRelief::SheetMetal_BendRelief | ( | double | theWidth, |
double | theLength ) |
Constructor. Creates bend relief with specified width and length.
double cadex::SheetMetal_BendRelief::Length | ( | ) | const |
Returns the bend relief length in mm .
void cadex::SheetMetal_BendRelief::SetLength | ( | double | theLength | ) |
Sets bend relief length in mm . The value must be more than zero, otherwise nothing happens.
void cadex::SheetMetal_BendRelief::SetShape | ( | const ModelData::Shape & | theShape | ) |
Sets bend relief shape. The shape must be not null, otherwise nothing happens.
void cadex::SheetMetal_BendRelief::SetWidth | ( | double | theWidth | ) |
Sets bend relief width in mm . The value must be more than zero, otherwise nothing happens.
const ModelData::Shape & cadex::SheetMetal_BendRelief::Shape | ( | ) | const |
double cadex::SheetMetal_BendRelief::Width | ( | ) | const |
Returns the bend relief width in mm .