Draft Polygon

Description
The Polygon tool creates a regular polygon inscribed in a circumference by picking two points, the center and the radius. It uses the Draft Linestyle set on the Draft Tray.



How to use

 * 1) Press the  button, or press  then  keys.
 * 2) Click a first point on the 3D view, or type a coordinate to indicate the center.
 * 3) Adjust the desired number of sides in the options dialog.
 * 4) Click another point on the 3D view, or type a radius value to define the polygon radius.

Options

 * To enter coordinates manually, simply enter the numbers, then press between each X, Y and Z component.
 * Press or click the checkbox to check/uncheck the  button. If continue mode is on, the Polygon tool will restart after you finish or close it, allowing you to draw another one without pressing the Polygon button again.
 * Press while drawing to force snapping your point to the nearest snap location, independently of the distance.
 * Press while drawing to constrain your next point horizontally or vertically in relation to the last one.
 * Press or the  button to have the polygon filled with a face after it has been closed
 * Press or the  button to abort the current command.
 * Polygons, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property below.

Properties

 * : The radius of the defining circle
 * : Specifies if the polygon is inscribed or circumscribed around the defining circle
 * : The number of sides of the polygon
 * : Specifies the size of chamfered corners
 * : Specifies a curvature radius to give to the corners of the rectangle
 * : Fills the polygon with a face
 * : Specifies a hatch pattern to fill the wire with
 * : Specifies the size of the hatch pattern

See also Draft Pattern page.

Scripting
The Polygon tool can by used in macros and from the python console by using the following function:


 * Creates a polygon object with the given number of faces and the radius.
 * If inscribed is False, the polygon is circumscribed around a circle with the given radius, otherwise it is inscribed.
 * If face is True, the resulting shape is displayed as a face, otherwise as a wireframe.
 * Returns the newly created object.

Example: