GetPartHole
Name
GetPartHole
When to use it
After setting the sizes using the SetPart and SetPartHole method and before the OnFinish event ends.
Prototype
GetPartHole(
IndexPart : long /*[in]*/,
IndexHole : long /*[in]*/,
Type: long/*[out]*/,
NumberOfVertices: long/*[out]*/,
CenterX: double/*[out]*/,
CenterY: double/*[out]*/,
Radius : double/*[out]*/,
AllowFillHole : long/*[out]*/,
UserDefinedData: long /*[out]*/
);
Explanations
With this method you may get the information about the holes of a piece to be cut. Each hole is represented as a polygon or as a circle.
The information for each hole can be set using the SetPartHole method.
Parameters
IndexPiece - the index of the piece whose information are extracted. This number is in range [0...NumberOfParts - 1].
IndexHole - the index of the hole whose information are requested.
Type: 0 for polygons and 1 for circles.
NumberOfVertices - number of vertices of the polygon. The vertices must be given in the counter-clock way using SetPartHoleVertex.
CenterX, CenterY - center of the circle.
Radius - radius of the circle.
AllowFillHole - 1 is the hole is allowed to be filled, 0 otherwise.
UserDefinedData- an user defined value which was set by SetPartHole method.
See Also