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 ()
 Returns shape from which unfolding started.
 
cadex.ModelData.Shape RelatedShape (cadex.ModelData.Shape theShape)
 Returns related shape for the current shape, i.e.
 
double Width ()
 
double Length ()
 
double Thickness ()
 
double Perimeter ()
 
cadex.Drawing.Drawing ToDrawing ()
 
cadex.Drawing.Drawing ToDrawing (cadex.SheetMetal_FlatPattern.DrawingParameters 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

◆ IsNull()

bool cadex.SheetMetal_FlatPattern.IsNull ( )
inline

Returns true if the flat pattern is null.

Examples
MTKConverter/Program.cs.

◆ MainShape()

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

Returns shape from which unfolding started.

Contains ModelData.Face if shape not empty.

The result shape is null if the flat pattern is null.

◆ RelatedShape()

cadex.ModelData.Shape cadex.SheetMetal_FlatPattern.RelatedShape ( cadex.ModelData.Shape theShape)
inline

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.

◆ UnfoldedShell()

cadex.ModelData.Shell cadex.SheetMetal_FlatPattern.UnfoldedShell ( )
inline

Returns the unfolded shell for flat pattern.

The result shell is null if the flat pattern is null.

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