Working with real numbers
The sizes of pieces optimized by the component are specified as integer numbers. This choice has been made for speed purposes.
However, there is an easy way to transform real numbers (containing decimal dot) such as double type from C++ to integer values.
Assume that we have the following numbers (representing some sizes to be cut):
230.9
175
679.76
These numbers can be scaled to become integer numbers by multiplying all of them with some power of 10. In our case we have to multiply them by 100.
We get the following integer sizes:
23090
17500
67976
The following properties and methods are affected by this transformation: SetDemandPiece, SetRepositoryPiece, SetRepositoryHole, BladeWidth, HeightTolerance, MaximalCutLength, MinimalWidthBreakage and the methods and properties used for getting the results.