IsFlat: Boolean;
The IsFlat property determines whether the cylinder is 3D.
Use JSON or the setIsFlat method to set the property value and the getIsFlat method to get the property value.
Available Values:
true. 2D cylinder.
false. 3D cylinder (default).
To execute the example, the HTML page must contain the Cylinder component named cylinder (see Example of Creating the Cylinder Component). Disable animation and display 2D cylinder:
// Disable animation cylinder.setUseAnimation(False); // Display 2D cylinder cylinder.setIsFlat(True);
After executing the example the 2D cylinder is displayed:

See also: