Describes a flat pattern for sheet metal models. More...
Classes | |
| class | DrawingParameters |
| Defines parameters used to generate a drawing. More... | |
Public Types | |
| typedef cadex::internal::SheetMetalImpl_FlatPattern | ImplType |
Public Member Functions | |
| SheetMetal_FlatPattern () | |
| Constructor. | |
| SheetMetal_FlatPattern (std::shared_ptr< ImplType > theImpl) | |
| Constructor. | |
| ModelData::Shell | UnfoldedShell () const |
| Returns the unfolded shell for flat pattern. | |
| ModelData::Shape | MainShape () const |
| Returns shape from which unfolding started. | |
| ModelData::Shape | RelatedShape (const ModelData::Shape &theShape) const |
| Returns related shape for the current shape, i.e. | |
| double | Width () const |
| double | Length () const |
| double | Thickness () const |
| double | Perimeter () const |
| Drawing::Drawing | ToDrawing () const |
| Drawing::Drawing | ToDrawing (const DrawingParameters &theParameters) const |
| bool | IsNull () const |
| Returns true if the flat pattern is null. | |
| operator bool () const | |
| ImplType * | Impl () const |
Describes a flat pattern for sheet metal models.
SheetMetal_FlatPattern stores the unfolded shell and its parameters (length, width, thickness, perimeter), main shape and shapes associations.
The following pictures illustrate the unfolded view of the sheet metal model.
Unfolded view |
| cadex::SheetMetal_FlatPattern::SheetMetal_FlatPattern | ( | ) |
|
explicit |
Constructor.
| bool cadex::SheetMetal_FlatPattern::IsNull | ( | ) | const |
Returns true if the flat pattern is null.
| ModelData::Shape cadex::SheetMetal_FlatPattern::MainShape | ( | ) | const |
Returns shape from which unfolding started.
Contains ModelData::Face if shape not empty.
The result shape is null if the flat pattern is null.
| ModelData::Shape cadex::SheetMetal_FlatPattern::RelatedShape | ( | const ModelData::Shape & | theShape | ) | const |
Returns related shape for the current shape, i.e.
original shape for unfolded and vice versa. The result shape is null if the flat pattern is null.
| ModelData::Shell cadex::SheetMetal_FlatPattern::UnfoldedShell | ( | ) | const |
Returns the unfolded shell for flat pattern.
The result shell is null if the flat pattern is null.