Home Search

DriveWorks Pro 22
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.