Home Search

DriveWorks Pro 23
PolygonCreateRoundedBox

Send Feedback

PolygonCreateRoundedBox

Returns a new rounded box polygon.

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

Syntax

PolygonCreateRoundedBox(X,Y,Width,Height,Corner Radius,Segments)

Where:

X: The position of the left side of the box in millimeters.

Y: The position of the bottom side of the box in millimeters.

Width: The width of the box in millimeters.

Height: The height of the box in millimeters.

Corner Radius: The radius of all corners, or a pipe-bar delimited list of each corner radius in millimeters.

Segments: The number of segments in each corner.

Examples

Example 1

Rule (Fill Paths)

PolygonCreateRoundedBox(0,0,200,200,20,5)

Result

{"200|180","198.4776|187.6537","194.1421|194.1421","187.6537|198.4776","180|200","20|200","12.34633|198.4776","5.857864|194.1421","1.522408|187.6537","0|180","0|20","1.522409|12.34633","5.857867|5.857862","12.34633|1.522411","20|0","180|0","187.6537|1.522411","194.1421|5.857869","198.4776|12.34633","200|20"}

The points for each coordinate of the rounded box 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.