Home Search

DriveWorks Pro 22
PolygonTranslate

Send Feedback

PolygonTranslate

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

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

Syntax

PolygonTranslate(Polygon,X,Y)

Where:

Polygon: The polygon to translate.

X: The translation to apply along the X axis in millimeters.

Y: The translation to apply along the Y axis in millimeters.

Examples

Example 1

Rule (Fill Paths)

PolygonTranslate(PolygonCreateBox(0,0,20,20),100,0)

Result

{"100|0","120|0","120|20","100|20"}

The given box polygon is translated to 100 in the X and 0 in the Y.