createRegularPolygonXY MethodStatic
Create a regular polygon centered
createRegularPolygonXY(center: Point3d, edgeCount: number, radius: number, radiusToVertices: booleantrue): LineString3d
Parameter | Type | Description |
---|---|---|
center | Point3d | center of the polygon. |
edgeCount | number | number of edges. |
radius | number | distance to vertex or edge (see radiusToVertices ) |
radiusToVertices | boolean | true if polygon is inscribed in circle (radius measured to vertices); false if polygon is outside circle (radius to edges) |
Returns - LineString3d
Defined in
- curve/LineString3d.ts Line 402
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.