GetStockArc
Name
GetStockArc
When to use it
After setting the information using the SetStock, SetStockVertex and SetStockArc methods and before the OnFinish event ends.
Prototype
GetStockArc(
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 sheet 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
IndexStock - index of the piece whose vertices are to be get.
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