Home Search

DriveWorks Pro 23
PolygonCreateArc

Send Feedback

PolygonCreateArc

Returns a new arc polygon.

This function is intended to be used with the DriveWorks 3D Extrusion entity.

Syntax

PolygonCreateArc(X,Y,Start,End,Radius,Segments)

Where:

X: The center X position from which the arc is derived in millimeters.

Y: The center Y position from which the arc is derived in millimeters.

Start: The angle in degrees at which the arc starts.

End: The angle in degrees at which the arc ends.

Radius: The distance from the center position to the arc points.

Segments: The number of edge segments.

Examples

Example 1

Rule (Fill Paths)

PolygonCreateArc(0,0,90,270,100,10) 

Result

{"100|-4.371139E-06","95.10565|-30.9017","80.9017|-58.77852","58.77852|-80.9017","30.9017|-95.10565","1.509958E-05|-100","-30.9017|-95.10565","-58.77854|-80.9017","-80.90168|-58.77854","-95.10565|-30.90171","-100|1.192488E-06"}

The coordinates for each fill path of the arc polygon are created.

Rule (Hole Paths)

PolygonCreateArc(0,5,90,270,95,10) 

Result

{"95|4.999996","90.35036|-24.35662","76.85661|-50.83959","55.83959|-71.85662","29.35662|-85.35036","1.43446E-05|-90","-29.35661|-85.35037","-55.83961|-71.85661","-76.8566|-50.83961","-90.35036|-24.35662","-95|5.000001"}

The coordinates for each hole path of the arc polygon are created.

See Also

The following Polygon functions are also available:

PolygonCombine - Combines two or more polygons.

PolygonCreateArc - Returns a new arc polygon.

PolygonCreateBox - Returns a new box polygon.

PolygonCreateCircle - Returns a new circular polygon.

PolygonCreateRoundedBox - Returns a new rounded box polygon.

PolygonCreateThickLine - Returns a new polygon by creating the outline of a given series of points.

PolygonCreateUniformThickLine - Returns a new polygon by creating a uniform outline of a given series of points.

PolygonFromPoints - Returns a new polygon created from the given list of points.

PolygonRotate- Returns a copy of the given polygon rotated around its local origin.

PolygonScale - Returns a copy of the given polygon scaled along the X and Y axes.

PolygonSpline - Creates a polygon that forms a cardinal spline path along the given polygon's points.

PolygonTranslate - Returns a copy of the given polygon translated along the X and Y axes.