Polygons are geometric primitives with a user specified number of equal sides. Polygons can be used as object shapes, or building blocks for more complex shapes. In VectorStyler, the sides of a polygon can be bent, allowing for more parametric shape options.
The properties of a polygon shape can be edited using the Node tool tool or the Shape panel.
Polygons can be drawn using the Polygon tool from the application toolbox. To draw a polygon:
- Select the Polygon tool from the toolbox.
- Press the mouse on a starting location on the canvas, this will be the center of the polygon.
- Drag the mouse to set the polygon radius and rotation.
- Hold the Control key to restrict the polygon rotation to user specified increments (5 degrees by default).
- Press the Plus key to increase the polygon sides while dragging.
- Press the Minus key to decrease the polygon sides while dragging.
- Release the mouse to create a polygon with the selected radius and rotation.
When the document view is rotated, the polygon will be drawn with the opposite rotation angle to the view.
The default polygon options can be set by double clicking on the Polygon tool icon in the toolbox. For example: the number of sides of the polygon can be set numerically before the drawing starts.
To create a polygon by setting the numeric properties of the shape, click at a point on the canvas. This will open the Polygon view (described below) that contains all the polygon shape properties. Set the required values and press Ok to create a new object with a polygon shape.
The Node tool tool can be used to interactively edit polygon shapes:
- Select the object with a polygon shape.
- Select the Node tool tool from the application toolbox.
- A handle is shown at each corner and the middle of each side of the polygon.
- Adjust the size and radius of the polygon by dragging one of the corner handles.
- Hold the Control key to restrict the rotation to user specified increments.
- Hold the Shift key to change only the radius and keep the original angle.
- Hold the Command key to change only the angle and keep the original radius.
- Adjust the bending of the polygon sides by dragging a handle at the center of a polygon side.
- Press the Plus key to increase the polygon sides.
- Press the Minus key to decrease the polygon sides.
The properties of a polygon shape can be edited in the Shape panel when the shape is selected, or in the Polygon view, either from the shape panel, or when editing a shape style.
The following properties can be modified for a polygon shape:
- Radius - Edit the radius of the polygon.
- Angle - Edit the rotation of the polygon.
- Bending - Edit the bending amount of the polygon sides.
- Sides - Edit the number of sides of the polygon.
- Corner - Edit the corner size and select the corner shape.
- Clockwise - Set the polygon shape direction to clockwise or counter-clockwise. The shape direction can be observed with the Node tool tool after converting the polygon to curves.