Grain direction
Some materials (such as wood) have a particular direction for grain. You would want to cut your demand with a specific grain direction.
For this purpose do the followings:
1. Enter the Repository pieces (the sheets) with the Length parallel with the grain direction.
2. Enter the Demand pieces (the parts) with the edge, that you want to be parallel to the grain direction, as Length. The other size - which should be perpendicular on the grain direction - would be the Width.
3. Do not allow rotation for the demand piece. See the method SetDemandPiece which has a parameter for this purpose.
In this way demand pieces will be cut as you have enter them and the grain will have the expected direction.
Example:
Repository piece: 3000 x 2000, grain direction is parallel to the length (3000).
Demand piece: 500 x 600. You want the grain direction to be parallel with the 600 size.
The code should be:
SetRepositoryPiece(0, 3000, 2000, 0, 0, 0, 0, 0, 0, 0);
SetDemandPiece(0, 600, 500, 0, 0, 0);
See also: