# 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FCmFyJc6b6FkBWZCyCtId%2Fimage.png?alt=media&#x26;token=ebb44d4a-80f3-4c8a-8b86-46746396f0bc" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FD7DirrmHJy2CKYsy4cIo%2Fpoly.gif?alt=media&#x26;token=5d4d1246-0d23-44e8-888b-cfb989de00aa" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FEGkIlY29rhVfNGls9OC3%2Fimage.png?alt=media&#x26;token=6f8ed94e-34d6-412b-b775-d42872a0039e" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FDRpf1GCeXtIs0b4YBH6j%2Fimage.png?alt=media&#x26;token=1ffdf883-db6b-4984-8421-d6dd6793e288" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FnaF8hWIJ2o3cv2I4wnnV%2Fpoly%202.gif?alt=media&#x26;token=4c573316-e4da-4bef-aa94-85b4dbf40cc6" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FnmtapyBs8NCC4YyhvG7X%2Fimage.png?alt=media&#x26;token=688e77f0-3e11-4e0f-85cd-839413fbddcd" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2Fnc1C1ggFL6WRzGga9VNE%2FScreenshot%202025-12-15%20at%203.15.33%E2%80%AFPM.png?alt=media&#x26;token=bcdd1047-4f7f-411b-ab9f-066682df05e1" 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="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FqmOdehsSkn6bUHRtzMoa%2Fimage.png?alt=media&#x26;token=5e3a1538-7406-40ca-905f-43ea2f2e886c" alt=""> <img src="https://1654204364-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FakGR2bVCZLTNoe2hkqeR%2Fuploads%2FltS5wJ5SMoIniJXWWwqX%2Fimage.png?alt=media&#x26;token=3a841cfb-d61a-4e4c-b332-89742f2e3913" 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 %}
