Example 1
Rule (Fill Paths)
PolygonScale(PolygonCreateBox(0,0,20,30),2,5)
Result
{"0|0","40|0","40|150","0|150"}
The given box polygon is scaled by a factor of 2 along the X axis, and a factor of 5 along the Y axis.
Returns a copy of the given polygon scaled along the X and Y axes.
This function is intended to be used with the DriveWorks 3D Extrusion entity.
PolygonScale(Polygon,X,Y)
Where:
Polygon: The polygon to scale.
X: The X scale factor.
Y: The Y scale factor.
Rule (Fill Paths)
PolygonScale(PolygonCreateBox(0,0,20,30),2,5)
Result
{"0|0","40|0","40|150","0|150"}
The given box polygon is scaled by a factor of 2 along the X axis, and a factor of 5 along the Y axis.
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.