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

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
 

Detailed Description

Defines parameters used in nesting process.

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

Constructor & Destructor Documentation

◆ Nesting_ComputerParameters()

cadex::Nesting_ComputerParameters::Nesting_ComputerParameters ( )

Constructor.

Sets default parameter values.

Member Function Documentation

◆ CurveTolerance()

double cadex::Nesting_ComputerParameters::CurveTolerance ( ) const

Returns curve tolerance used to build polygons for geentic algorithm.

The default value is 0.5.

See also
SetCurveTolerance()

◆ GenerationSize()

size_t cadex::Nesting_ComputerParameters::GenerationSize ( ) const

Returns generation size used in genetic algorithm.

The default value is 5.

See also
SetGenerationSize()

◆ IterationCount()

size_t cadex::Nesting_ComputerParameters::IterationCount ( ) const

Returns iteration count of genetic algorithm.

The default value is 5.

See also
SetIterationCount()

◆ MirrorControl()

bool cadex::Nesting_ComputerParameters::MirrorControl ( ) const

Returns whether mirror transformation could be applied in nesting process or not.

The default value is false.

See also
SetMirrorControl()

◆ MutationRate()

double cadex::Nesting_ComputerParameters::MutationRate ( ) const

Returns mutation rate used in genetic algorithm.

The default value is 0.

See also
SetMutationRate()

◆ NestingInHoles()

bool cadex::Nesting_ComputerParameters::NestingInHoles ( ) const

Returns whether parts can be nested in holes of other parts.

The default value is false.

See also
SetNestingInHole()

◆ PartToPartDistance()

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.

See also
SetPartToPartDistance()

◆ PartToSheetBoundaryDistance()

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.

See also
SetPartToSheetBoundaryDistance()

◆ RotationCount()

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.

See also
SetRotationCount()

◆ SetCurveTolerance()

void cadex::Nesting_ComputerParameters::SetCurveTolerance ( double theCurveTolerance)

Sets curve tolerance used to build polygons for geentic algorithm. The value must be greater than zero.

See also
CurveTolerance()
Examples
nesting/nesting_computer/main.cxx.

◆ SetGenerationSize()

void cadex::Nesting_ComputerParameters::SetGenerationSize ( size_t theGenerationSize)

Sets generation size used in genetic algorithm. The value must be grater than zero.

See also
GenerationSize()
Examples
nesting/nesting_computer/main.cxx.

◆ SetIterationCount()

void cadex::Nesting_ComputerParameters::SetIterationCount ( size_t theIterationCount)

Sets iteration count of genetic algorithm. The value must be grater than zero.

See also
IterationCount()
Examples
nesting/nesting_computer/main.cxx.

◆ SetMirrorControl()

void cadex::Nesting_ComputerParameters::SetMirrorControl ( bool theIsMirrorControlEnabled)

Sets mirror transformation flag.

See also
MirrorControl()
Examples
nesting/nesting_computer/main.cxx.

◆ SetMutationRate()

void cadex::Nesting_ComputerParameters::SetMutationRate ( double theMutationRate)

Sets mutation rate in geentic algorithm. The value must be in range [0, 1).

See also
MutationRate()
Examples
nesting/nesting_computer/main.cxx.

◆ SetNestingInHoles()

void cadex::Nesting_ComputerParameters::SetNestingInHoles ( bool theIsNestingInHole)

Sets nesting in holes flag.

See also
NestingInHoles()

◆ SetPartToPartDistance()

void cadex::Nesting_ComputerParameters::SetPartToPartDistance ( double thePartToPartDistance)

Sets part to part distance in mm. The value must be grater than or equal to zero.

See also
PartToPartDistance()
Examples
nesting/nesting_computer/main.cxx.

◆ SetPartToSheetBoundaryDistance()

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.

See also
PartToPartDistance()
Examples
nesting/nesting_computer/main.cxx.

◆ SetRotationCount()

void cadex::Nesting_ComputerParameters::SetRotationCount ( size_t theRotationCount)

Sets rotation count. The value must be grater than zero.

See also
RotationCount()
Examples
nesting/nesting_computer/main.cxx.