Hide menu
Loading...
Searching...
No Matches
cadex::SheetMetal_FlatPattern Class Reference

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. original shape for unfolded and vice versa.
 
double Width () const
 Returns width of the unfolded model in mm .
 
double Length () const
 Returns length of the unfolded model in mm .
 
double Thickness () const
 Returns thickness of the unfolded model in mm .
 
double Perimeter () const
 Returns perimeter of the unfolded model in mm .
 
Drawing::Drawing ToDrawing () const
 Converts the flat pattern to a drawing with default parameters.
 
Drawing::Drawing ToDrawing (const DrawingParameters &theParameters) const
 Converts the flat pattern to a drawing using parameters theParameters.
 
bool IsNull () const
 Returns true if the flat pattern is null.
 
 operator bool () const
 
ImplType * Impl () const
 

Detailed Description

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
Examples
MTKConverter/Program.cs, sheet_metal/unfolder/Program.cs, and sheet_metal/unfolder/main.cxx.

Constructor & Destructor Documentation

◆ SheetMetal_FlatPattern() [1/2]

cadex::SheetMetal_FlatPattern::SheetMetal_FlatPattern ( )

Constructor.

Creates an empty SheetMetal_FlatPattern.

See also
IsNull()

◆ SheetMetal_FlatPattern() [2/2]

cadex::SheetMetal_FlatPattern::SheetMetal_FlatPattern ( std::shared_ptr< ImplType > theImpl)
explicit

Constructor.

Member Function Documentation

◆ IsNull()

bool cadex::SheetMetal_FlatPattern::IsNull ( ) const

Returns true if the flat pattern is null.

Examples
MTKConverter/Program.cs.

◆ Length()

double cadex::SheetMetal_FlatPattern::Length ( ) const

Returns length of the unfolded model in mm .

Examples
sheet_metal/unfolder/main.cxx.

◆ MainShape()

ModelData::Shape cadex::SheetMetal_FlatPattern::MainShape ( ) const

Returns shape from which unfolding started.

Contains ModelData::Face if shape not empty.

◆ Perimeter()

double cadex::SheetMetal_FlatPattern::Perimeter ( ) const

Returns perimeter of the unfolded model in mm .

Examples
sheet_metal/unfolder/main.cxx.

◆ RelatedShape()

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.

◆ Thickness()

double cadex::SheetMetal_FlatPattern::Thickness ( ) const

Returns thickness of the unfolded model in mm .

Examples
sheet_metal/unfolder/main.cxx.

◆ ToDrawing() [1/2]

Drawing::Drawing cadex::SheetMetal_FlatPattern::ToDrawing ( ) const

Converts the flat pattern to a drawing with default parameters.

Examples
sheet_metal/unfolder/Program.cs, and sheet_metal/unfolder/main.cxx.

◆ ToDrawing() [2/2]

Drawing::Drawing cadex::SheetMetal_FlatPattern::ToDrawing ( const DrawingParameters & theParameters) const

Converts the flat pattern to a drawing using parameters theParameters.

◆ UnfoldedShell()

ModelData::Shell cadex::SheetMetal_FlatPattern::UnfoldedShell ( ) const

Returns the unfolded shell for flat pattern.

Examples
MTKConverter/Program.cs, and MTKConverter/main.cxx.

◆ Width()

double cadex::SheetMetal_FlatPattern::Width ( ) const

Returns width of the unfolded model in mm .

Examples
sheet_metal/unfolder/main.cxx.