> For the complete documentation index, see [llms.txt](https://docs.icraft.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.icraft.design/editor-features/resource-panel/basic-graphics/polygon.md).

# Polygon

When basic geometric primitives cannot meet the needs of complex architectural outlines, irregular bases, or custom part designs, you can use the **Pen Tool** to freely draw a polygon and convert it into a 3D solid model with thickness and bevel effects in a single step.

Custom polygons combine the flexibility of 2D drawing with the precision of parametric modeling. Through simple point-and-click operations, you can create any closed shape, ranging from simple triangles to complex industrial contours.

***

## How to Draw a Polygon?

{% stepper %}
{% step %}

### STEP 1

In the **top navigation bar of the canvas**, click the **Pen Tool icon**. The mouse cursor will change to a pen icon, indicating that you have entered **drawing mode**.
{% endstep %}

{% step %}

### STEP 2

Click the left mouse button anywhere on the canvas to place an anchor point.\
iCraft will automatically connect adjacent anchor points with lines to outline the shape.
{% endstep %}

{% step %}

### STEP 3

Move the cursor back to the **first anchor point** and click it to close the path.
{% endstep %}

{% step %}

### STEP 4

Press **`ENTER`**, the editor will automatically fill the surface and convert the shape into a polygon, which can then be edited like other scene elements.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
💡Tips:

* It is recommended to draw polygons in **2D view** (shortcut **`V`**) for a more intuitive experience.
* Enable **Grid Snapping** (shortcut **`G`**). The cursor will automatically snap to grid lines and anchor points, helping you place points more precisely.
* If you place an anchor point incorrectly, press **`Ctrl + Z`** to undo the previous point.
* Press **`ESC`** to clear all anchor points and exit drawing mode.
  {% endhint %}

<figure><img src="/files/VI4t5Uxoya8QUl3mvlX0" alt=""><figcaption></figcaption></figure>

***

## Polygon Special Parameters

* **Height**\
  Controls the extrusion depth (thickness) of the polygon. The larger the value, the thicker the resulting model.

  Default value: 0

  Adjustable range: `0 ~ unlimited`
* **Radius**\
  Applies rounded edges to the polygon or the extruded polyhedron. The value represents the arc radius used to smooth the edges. Larger values create smoother edges. A value of 0 produces a standard polygon or polyhedron.\
  Default value: 0

  Adjustable range: `0 ~ 10`
* **Subdivision**\
  Controls the mesh density of rounded corners and curved parts of the polygon or extruded polyhedron. Higher values produce smoother edges.

  Default value: 8

  Adjustable range: `1 ~ 32`
* **Bevel**\
  Adds a smooth bevel to the top and bottom edges of the polygon or extruded polyhedron, improving visual appearance and light reflection.\
  Default value: 0

  Adjustable range: `0 ~ 1`
* **Bevel Sides**\
  Effective only when **Bevel** is enabled. Determines the smoothness of the bevel surface. Higher values produce rounder edges.\
  Default value: 3

  Adjustable range: `1 ~ 10`
* **Stroke**\
  A toggle switch that determines whether the polygon or extruded polyhedron displays surface outlines.\
  Default: Disabled
* **Stroke Color**\
  Selects the color of the stroke using the color picker.
* **Border Line Width**\
  Adjusts the thickness of the stroke.\
  Default value: 0.03

  Adjustable range: `0 ~ 0.1`

<figure><img src="/files/EQz0Io8hPRGYy5h0nmoR" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.icraft.design/editor-features/resource-panel/basic-graphics/polygon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
