Describes a sheet metal bend relief. More...
Public Member Functions | |
| SheetMetal_BendRelief () | |
| Constructor. | |
| SheetMetal_BendRelief (double theWidth, double theLength) | |
| Constructor. | |
| double | Width () const |
| Returns the bend relief width in mm . | |
| void | SetWidth (double theWidth) |
| Sets bend relief width in mm . | |
| double | Length () const |
| Returns the bend relief length in mm . | |
| void | SetLength (double theLength) |
| Sets bend relief length in mm . | |
| const ModelData::Shape & | Shape () const |
| Returns the bend relief shape. | |
| void | SetShape (const ModelData::Shape &theShape) |
| Sets bend relief shape. | |
| 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 | ( | ) |
Constructor.
| cadex::SheetMetal_BendRelief::SheetMetal_BendRelief | ( | double | theWidth, |
| double | theLength ) |
Constructor.
Creates bend relief with specified width and length.
| bool cadex::SheetMetal_BendRelief::IsNull | ( | ) | const |
Returns true if the object is null.
| 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 | ) |
| 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 |
Returns the bend relief shape.
| double cadex::SheetMetal_BendRelief::Width | ( | ) | const |
Returns the bend relief width in mm .