Skip to content

How to add new properties?

Joaquín edited this page Jan 21, 2020 · 1 revision

Properties

The geometric packing algorithm returns a mesh with polygons. These meshes are used for a variety of simulations, but a raw mesh is not useful. To enrich the value of the mesh properties are assigned to polygons. Those properties are used to distinguish which polygon represents which element or property. For example, some polygons can have high elasticity and other low elasticity. So in this page, it is explained how to create new properties that will be assigned later to polygons on the mesh.

The properties tab is located at the right part of the application as shown in the figure below. This tab includes addition, edition, and deletion of properties.

Properties Tab

How to add new properties?

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

Dialog New Property

The attributes are the following:

Name Type Examples Description
Label string HighElasticityProperty Name for the property. Note that two properties cannot have the same name.
color string #eff23f Color of the property. All polygons with this property will be painted with this color.
Type of Value String or Number Number Type of the value that this property has. For example, the elasticity is a numerical value and it will be Number as value.
Default Value Type of Value 12 Default value of the property. It can be a string or a number.

How to edit or delete new polygons?

To edit or delete the properties 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 properties. For the deletion option only ask for confirmation before deleting the property. The image below shows the two options available for the polygons.

Edit or Delete Properties