Polyline for MoxyDraw

Creates a polyline.


Syntax:

Polyline
points collection string
is polyline closed
start width
end width
spline

points collection string:

Sets all points as a string. It can have infinite number of points. The format is "pointX1,pointY1,angleDEG1_" as follows:

pointX1 = Sets the first position point X.

pointY1 = Sets the first position point Y.

angleDEG1 = Optional. Sets the arc angle in degrees and counter-clock wise.If set to 0 or omitted there will be no arc.

angle

_ = Separator between points.


Infinite points can be entered as follow: "pointX1,pointY1,angleDEG1_pointX2,pointY2,angleDEG2_pointX3,pointY3,angleDEG3_pointX4,pointY4,angleDEG4_" and so on...

is polyline closed:

Optional. Sets if polyline is closed or open. Set it to "True" to close it. If set to false or omitted, it will stay open (unless the last point is on the first one).

start width:

Optional. Sets the start width. If omitted, it will be set to 0.

end width:

Optional. Sets the end width. If omitted, it will be set to 0.

If "start width" and "end width" are the same, the polyline will be only this width.

If "start width" and "end width" are NOT the same and polyline is closed, strange result can occur with the width.

spline:

Optional. Sets if the polyline type of spline. If omitted, it will be set to "none".

None = Polyline will stay as it is.

Cubic = Polyline will be turned to a "2D Polyline" and applies a spline to it using the "cubic" calculation.

Curve = Polyline will be turned to a "2D Polyline" and applies a spline to it using the "curve fit" calculation.

Quadratic = Polyline will be turned to a "2D Polyline" and applies a spline to it using the "quadratic" calculation.

Examples:

Polyline
0,0,0_0,5,180_0,0,0

Does a half circle.



Polyline
0,0,0_5,0,0_5,3,0_0,3,0
True

Does a rectangle.



Polyline
0,0_5,0_5,3_0,3_0,0

Does the same rectangle in another way.



Polyline
0,0,0_1,0,180_1,0.5625,0_0,0.5625,180_0,0,0

Does a slot.



Polyline
0,0,0_6,0,0_3,6,0
True

Does a triangle.