-
Notifications
You must be signed in to change notification settings - Fork 0
How to add new polygons?
For input construction purposes this application has a tab for defining which polygons will be used as input. As explained on the first page this algorithm receives as input only convex polygons. So the polygons simulated from this component will only be convex polygons. All these polygons are constructed from a circle, choosing the vertices randomly at the edge of the circle.
The polygon tab is located at the right part of the application as shown in the figure below. This tab includes addition, edition, and deletion of the polygons.

If you want to add new polygons you must press the new polygon button. After the button is pressed a dialog is opened. In this dialog there is a form that receives as input the basic information needed for the construction of the new polygon.

The attributes are the following:
Name | Type | Examples | Description |
---|---|---|---|
Label | string |
Polygon1 |
Label that represents the polygon. |
Number of vertices | integer |
5 |
Number of vertices of the polygon. |
Radius | float |
10.5 |
Radius of the circle from which the polygon is created. |
Probability of appearance | float |
30 |
Percentage that will represent the probability of being chosen as the next polygon in the packing algorithm. |
To edit or delete the polygons already created you just need to press the pencil icon (edition) or the trash icon (deletion). When pressing the edition icon appears a dialog identically as the one shown on the creation of the polygons. For the deletion option only ask for confirmation before deleting the polygon. The image below shows the two options available for the polygons.
