> For the complete documentation index, see [llms.txt](https://scenegroup.gitbook.io/cavalry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scenegroup.gitbook.io/cavalry/nodes/shapes/basic-shape/rectangle.md).

# Rectangle

Create a Rectangle primitive

**Size** - set the dimensions of the rectangle \[w, h].

**Radius Mode** - determine whether to set the corner radius globally on on a per corner basis:&#x20;

* **Simple** - the **Corner Radius** setting will set all corner radii.
* **Complex** - set each corner individually via **Top** and **Bottom Radii**.

**Corner Radius** - set a radius for the rectangle’s corners.

**Top Radii** - set a radius for the top corners \[l, r].

**Bottom Radii** - set a radius for the bottom corners \[l, r].

**Chamfer** - chamfer the corners of the rectangle.

**Edge Divisions** - set the number of divisions for \[w, h]

**Vectorize** - convert your corners from bezier (default) to polygonal.

**Corner Divisions** - set the number of divisions for vectorised curves.
