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

The nesting analyzing tool. More...

#include <cadex/Nesting_Computer.hxx>

Public Types

typedef cadex::internal::NestingImpl_Computer ImplType
 

Public Member Functions

 Nesting_Computer ()
 Constructor.
 
void AddPattern (const Drawing::View &theDrawing, size_t theQuantity)
 
void AddMaterial (double theLength, double theWidth, size_t theQuantity)
 
void ResetPatterns ()
 
void ResetMaterials ()
 
void SetParameters (const Nesting_ComputerParameters &theParams)
 
const Nesting_ComputerParametersParameters () const
 
Nesting_Data Perform (const cadex::ProgressStatus &theProgressStatus=cadex::ProgressStatus())
 

Detailed Description

The nesting analyzing tool.

Analyzes the drawing to get square-optimized laying out cutting patterns. It's used to minimize the raw material waste. If the analysis is failed, the empty Nesting_Data is returned. In order to load patterns that will be nested it uses AddPattern(). To load materials in which the patterns will be nested use AddMaterial().

Example of analysis results could be found on the Nesting Process page.

Examples
nesting/nesting_computer/Program.cs, and nesting/nesting_computer/main.cxx.

Constructor & Destructor Documentation

◆ Nesting_Computer()

cadex::Nesting_Computer::Nesting_Computer ( )

Constructor.

Creates a nesting analyzer with default parameters.

See also
Nesting_ComputerParameters

Member Function Documentation

◆ AddMaterial()

void cadex::Nesting_Computer::AddMaterial ( double theLength,
double theWidth,
size_t theQuantity )

Configure material in which the patterns will be nested.

See also
ResetMaterials, AddPattern
Examples
nesting/nesting_computer/main.cxx.

◆ AddPattern()

void cadex::Nesting_Computer::AddPattern ( const Drawing::View & theDrawing,
size_t theQuantity )

Load pattern theDrawing and its quantity theQuantity that will be nested.

See also
ResetPatterns, AddMaterial
Examples
nesting/nesting_computer/main.cxx.

◆ Perform()

Nesting_Data cadex::Nesting_Computer::Perform ( const cadex::ProgressStatus & theProgressStatus = cadex::ProgressStatus())

Runs analyzing process for loaded patterns and materials.

See also
AddPattern, AddMaterial
Examples
nesting/nesting_computer/main.cxx.

◆ ResetMaterials()

void cadex::Nesting_Computer::ResetMaterials ( )

Clear all loaded materials.

See also
AddMaterial

◆ ResetPatterns()

void cadex::Nesting_Computer::ResetPatterns ( )

Clear all loaded patterns.

See also
AddPattern