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_ComputerParameters & | Parameters () const |
Nesting_Data | Perform (const cadex::ProgressStatus &theProgressStatus=cadex::ProgressStatus()) |
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.
cadex::Nesting_Computer::Nesting_Computer | ( | ) |
void cadex::Nesting_Computer::AddMaterial | ( | double | theLength, |
double | theWidth, | ||
size_t | theQuantity ) |
Configure material in which the patterns will be nested.
void cadex::Nesting_Computer::AddPattern | ( | const Drawing::View & | theDrawing, |
size_t | theQuantity ) |
Load pattern theDrawing and its quantity theQuantity that will be nested.
Nesting_Data cadex::Nesting_Computer::Perform | ( | const cadex::ProgressStatus & | theProgressStatus = cadex::ProgressStatus() | ) |
Runs analyzing process for loaded patterns and materials.
void cadex::Nesting_Computer::ResetMaterials | ( | ) |
Clear all loaded materials.
void cadex::Nesting_Computer::ResetPatterns | ( | ) |
Clear all loaded patterns.