Defines parameters used in nesting process. More...
#include <cadex/Nesting_ComputerParameters.hxx>
Public Types | |
typedef cadex::internal::NestingImpl_ComputerParameters | ImplType |
Public Member Functions | |
Nesting_ComputerParameters () | |
Constructor. | |
size_t | IterationCount () const |
void | SetIterationCount (size_t theIterationCount) |
size_t | GenerationSize () const |
void | SetGenerationSize (size_t theGenerationSize) |
double | MutationRate () const |
void | SetMutationRate (double theMutationRate) |
double | CurveTolerance () const |
void | SetCurveTolerance (double theCurveTolerance) |
double | PartToPartDistance () const |
void | SetPartToPartDistance (double thePartToPartDistance) |
double | PartToSheetBoundaryDistance () const |
void | SetPartToSheetBoundaryDistance (double thePartToSheetBoundaryDistance) |
bool | NestingInHoles () const |
void | SetNestingInHoles (bool theIsNestingInHole) |
bool | MirrorControl () const |
void | SetMirrorControl (bool theIsMirrorControl) |
size_t | RotationCount () const |
void | SetRotationCount (size_t theRotationCount) |
ImplType * | Impl () const |
Defines parameters used in nesting process.
cadex::Nesting_ComputerParameters::Nesting_ComputerParameters | ( | ) |
Constructor.
Sets default parameter values.
double cadex::Nesting_ComputerParameters::CurveTolerance | ( | ) | const |
Returns curve tolerance used to build polygons for geentic algorithm.
The default value is 0.5.
size_t cadex::Nesting_ComputerParameters::GenerationSize | ( | ) | const |
Returns generation size used in genetic algorithm.
The default value is 5.
size_t cadex::Nesting_ComputerParameters::IterationCount | ( | ) | const |
bool cadex::Nesting_ComputerParameters::MirrorControl | ( | ) | const |
Returns whether mirror transformation could be applied in nesting process or not.
The default value is false.
double cadex::Nesting_ComputerParameters::MutationRate | ( | ) | const |
bool cadex::Nesting_ComputerParameters::NestingInHoles | ( | ) | const |
Returns whether parts can be nested in holes of other parts.
The default value is false.
double cadex::Nesting_ComputerParameters::PartToPartDistance | ( | ) | const |
Returns part to part distance in mm. Used to indent parts from each other.
The default value is 0.
double cadex::Nesting_ComputerParameters::PartToSheetBoundaryDistance | ( | ) | const |
Returns part to sheet boundary distance in mm. Used to indent parts from sheet boundary.
The default value is 0.
size_t cadex::Nesting_ComputerParameters::RotationCount | ( | ) | const |
Returns count of rotations which can be applied in nesting process. Accessible angles are dividers of 360 / RotationCount() degree
The default value is 1.
void cadex::Nesting_ComputerParameters::SetCurveTolerance | ( | double | theCurveTolerance | ) |
Sets curve tolerance used to build polygons for geentic algorithm. The value must be greater than zero.
void cadex::Nesting_ComputerParameters::SetGenerationSize | ( | size_t | theGenerationSize | ) |
Sets generation size used in genetic algorithm. The value must be grater than zero.
void cadex::Nesting_ComputerParameters::SetIterationCount | ( | size_t | theIterationCount | ) |
Sets iteration count of genetic algorithm. The value must be grater than zero.
void cadex::Nesting_ComputerParameters::SetMirrorControl | ( | bool | theIsMirrorControlEnabled | ) |
void cadex::Nesting_ComputerParameters::SetMutationRate | ( | double | theMutationRate | ) |
Sets mutation rate in geentic algorithm. The value must be in range [0, 1).
void cadex::Nesting_ComputerParameters::SetNestingInHoles | ( | bool | theIsNestingInHole | ) |
Sets nesting in holes flag.
void cadex::Nesting_ComputerParameters::SetPartToPartDistance | ( | double | thePartToPartDistance | ) |
Sets part to part distance in mm. The value must be grater than or equal to zero.
void cadex::Nesting_ComputerParameters::SetPartToSheetBoundaryDistance | ( | double | thePartToSheetBoundaryDistance | ) |
Sets part to sheet boundary distance distance in mm. The value must be grater than or equal to zero.
void cadex::Nesting_ComputerParameters::SetRotationCount | ( | size_t | theRotationCount | ) |
Sets rotation count. The value must be grater than zero.