Extreme Type

A static extreme type for a polygon (i.e. a type that will not change during the execution of the simulation) is specified using one of the predefined Ejs constants:

To specify a type that changes in run-time, you'll need to declare a variable of type int, associate it to the corresponding element property, and then change the variable according to your program's logic. The integer values equivalent to each style are specified in the list above.