## PolygonBuilder class

  A helper class to build polygon for Mesh


## Methods

### constructor{#constructor}

| Name | Description |
| --- | --- |
| constructor(mesh) | Initializes a new instance of the PolygonBuilder class. | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| mesh | Mesh | On which mesh to build polygon. |

 **Result:**



---


### begin{#begin}

| Name | Description |
| --- | --- |
| begin() | Begins to add a new polygon | 

 **Result:**



---


### addVertex{#addVertex}

| Name | Description |
| --- | --- |
| addVertex(index) | Adds a vertex index to the polygon | 

 **Parameters:**

| Name | Type | Description |
| --- | --- | --- |
|  inde | Number | null |

 **Result:**



---


### end{#end}

| Name | Description |
| --- | --- |
| end() | Finishes the polygon creation | 

 **Result:**



---



