What does POLYGON do?
POLYGON creates a closed regular polygon with equal-length sides. The resulting shape is a single closed polyline rather than a collection of separate line objects. GstarCAD can create polygons with between 3 and 1024 sides, making the command useful for triangles, squares, hexagons and other precise geometric shapes.
How to use the command
- Type
POLYGONor its shortcut POL, then press Enter. - Enter the required number of sides.
- Specify the centre point of the polygon, or choose Edge to define one side directly.
- Choose Inscribed in circle or Circumscribed about circle.
- Specify the required radius.
- GstarCAD creates the polygon as a single closed polyline.
Command: POL ↵
Enter number of sides <4>: 6 ↵
Specify center of polygon or [Edge]: 0,0 ↵
Enter an option [Inscribed in circle/Circumscribed about circle] <I>: I ↵
Specify radius of circle: 1000 ↵
Key POLYGON options
The construction method determines whether the specified radius reaches the polygon vertices, its sides or whether a side is defined directly.
Practical example: draw a regular hexagon
Suppose you need a regular hexagonal profile centred at 0,0 with its vertices 1000 mm from the centre. Start POLYGON, enter 6 for the number of sides and specify 0,0 as the centre. Choose Inscribed in circle and enter a radius of 1000. GstarCAD creates a precise six-sided closed polyline with every vertex positioned on the imaginary circle.
Tip
Use Inscribed when a known radius must reach the polygon vertices. Use Circumscribed when the known distance is from the centre to the sides. Choose Edge when the length and position of one polygon side are already known.