GetPartArc
Name
GetPartArc
When to use it
After setting the sizes using the SetPart, SetPartVertex and SetPartArc methods and before the OnFinish event ends.
Prototype
GetPartArc(
IndexPart: long /*[in]*/,
IndexStartVertex: long/*[in]*/,
IsArc: long/*[out]*/,
CenterX: double/*[out]*/,
CenterY: double/*[out]*/,
Direction: long/*[out]*/,
UserDefinedData: long /*[out]*/
);
Explanations
Returns the information regarding the polygon representing the piece to be cut. Vertices can be connected either by straight lines or arcs. This method returns the arc information (if existing). The extremities of the arc are IndexStartVertex and the next one.
Parameters
IndexPart - index of the part whose vertices are to be get. It must be set between 0 and NumberOfParts - 1.
IndexStartVertex - index of the vertex representing the start of the arc.
IsArc - specify if the shape connecting IndexStartVertex with the next node is arc or straight segment.
CenterX, CenterY - the coordinates of the arc center.
Direction - 0 - counter clockwise, 1 - clockwise.
UserDefinedData- an user defined value.
See also