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

Describes a flat pattern for sheet metal models. More...

Inherits global.SystemIDisposable.

Classes

class  DrawingParameters
 Defines parameters used to generate a drawing. More...
 

Public Member Functions

 SheetMetal_FlatPattern (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 SheetMetal_FlatPattern ()
 Constructor.
 
cadex.ModelData.Shell UnfoldedShell ()
 Returns the unfolded shell for flat pattern.
 
cadex.ModelData.Shape MainShape ()
 
cadex.ModelData.Shape RelatedShape (cadex.ModelData.Shape theShape)
 Returns related shape for the current shape, i.e. original shape for unfolded and vice versa.
 
double Width ()
 Returns width of the unfolded model in mm .
 
double Length ()
 Returns length of the unfolded model in mm .
 
double Thickness ()
 Returns thickness of the unfolded model in mm .
 
double Perimeter ()
 Returns perimeter of the unfolded model in mm .
 
cadex.Drawing.Drawing ToDrawing ()
 Converts the flat pattern to a drawing with default parameters.
 
cadex.Drawing.Drawing ToDrawing (cadex.SheetMetal_FlatPattern.DrawingParameters theParameters)
 Converts the flat pattern to a drawing using parameters theParameters.
 
bool IsNull ()
 Returns true if the flat pattern is null.
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

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()

cadex.SheetMetal_FlatPattern.SheetMetal_FlatPattern ( )
inline

Constructor.

Creates an empty SheetMetal_FlatPattern.

See also
IsNull()

Member Function Documentation

◆ MainShape()

cadex.ModelData.Shape cadex.SheetMetal_FlatPattern.MainShape ( )
inline

Returns shape from which unfolding started. Contains ModelData.Face if shape not empty.