# Polygon

A polygon is a plane figure formed by connecting a finite number of straight line segments end-to-end, where the first and last points meet to enclose a region.

### Slot Mode: Scale To Fit

Scales each row or column so that it takes up the full available space along that scanline.

| Parameter          | Type                   | Descripton                                                 |
| ------------------ | ---------------------- | ---------------------------------------------------------- |
| Scanline Direction | Horizontal or Vertical | The direction the rows are generated within the polygon.   |
| Set Row Count      | On/Off                 | Allows the adjusting of row count within the polygon.      |
| Row Count          | Decimal                | The number of rows within the polygon.                     |
| Start T            | Decimal                | How much of the polygon is filled starting from the top.   |
| End T              | Decimal                | How much of the polygon is filled starting from the bottom |

<figure><img src="/files/ySz2OtHi9NfbbZqQzxDw" alt="" width="346"><figcaption><p align="center"><sub><mark style="color:$info;">The inspector for a Scaled Fit polygon</mark></sub></p></figcaption></figure>

<figure><img src="/files/1gW1XzK3YSqfwse3IXDk" alt="" width="316"><figcaption><p align="center"><sub><mark style="color:$info;">Polygon scanline direction being manipulated between vertical and horizontal</mark></sub></p></figcaption></figure>

### Slot Mode: Bounded Grid

A grid of evenly spaced lines or points that is restricted to a specific, finite area or region.<br>

| Parameter    | Type    | Descripton                                             |
| ------------ | ------- | ------------------------------------------------------ |
| Slot Density | Decimal | The amount of space between drones within the polygon. |

<figure><img src="/files/L24D2omVUhlsFlQ4rjSH" alt="" width="344"><figcaption><p align="center"><sub><mark style="color:$info;">The inspector for a Bounded Grid polygon</mark></sub></p></figcaption></figure>

### Slot Mode: Poisson

A distribution method that provides pseudo-random placement at a specified density.

| Parameter      | Type    | Description                                            |
| -------------- | ------- | ------------------------------------------------------ |
| Slot Density   | Decimal | The amount of space between drones within the polygon. |
| Random Seeding | Decimal | Points are randomly generated to ensure variability.   |

<figure><img src="/files/Y937q80YTDg0hbFHkTBQ" alt="" width="346"><figcaption><p align="center"><sub><mark style="color:$info;">The inspector for a Poisson polygon</mark></sub></p></figcaption></figure>

<figure><img src="/files/hI5AL7i18hljIRfjgTYw" alt=""><figcaption><p align="center"><sub><mark style="color:$info;">Polygon slot mode being manipulated between bounded grid, poisson, and scaled fit</mark></sub></p></figcaption></figure>

## Editing Polygons

When selecting a polygon, a toolbar will appear on the top of the scene view. This toolbar provides quick ways of manipulating polygons, editing geometry, and managing the anchor point. Buttons become enabled/disabled based on the current selection and state of the polygon.

<figure><img src="/files/nUpfkOyifqcbIR7qUaB6" alt="" width="128"><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Tools" %}

<details>

<summary>Center Anchor</summary>

Automatically shift the polygon's centroid to be the average of all control points

</details>

<details>

<summary>Delete</summary>

Deletes the currently selected anchor point, segment, or spline

</details>

<figure><img src="/files/z9K0hFPitFKm6NmAUnB0" alt="" width="31"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Edit" %}
This button array provides a way to enter/exit polygon edit mode. Edit mode must be entered to modify polygon hull anchor points

<details>

<summary><img src="/files/APEALCzWBbystXSWWuUD" alt=""> <img src="/files/sAXW0ENcRli0qx5kYnOs" alt=""> Edit Mode (Exit Edit Mode)</summary>

Enter edit mode and allow geometry to be selected and manipulated. The button will toggle to an X when active and must be clicked again to exit edit mode.

</details>
{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.verge.aero/drone-show-software/verge-design-studio/scene-objects/polygon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
