Creates an n-sided polygon.
PROCEDURE RegularPolygon(
centerX : REAL;
centerY : REAL;
radius : REAL;
numSides : INTEGER;
mode : INTEGER);def vs.RegularPolygon(centerX, centerY, radius, numSides, mode):
return None| Name | Type | Description |
|---|---|---|
| centerX | REAL | |
| centerY | REAL | |
| radius | REAL | |
| numSides | INTEGER | |
| mode | INTEGER | 1 - circumscribed; 2 - inscribed |
RegularPolygon(1.0, 2.0, 0.5, 1, 2);import vs
# Creates an n-sided polygon.
centerX = 1.0
centerY = 2.0
radius = 1.0
numSides = 5
mode = 0
vs.RegularPolygon(centerX, centerY, radius, numSides, mode)
newObj = vs.LNewObj() # handle to the newly created objectAvailability: from Vectorworks 2014