Cylinder.IsFlat

Syntax

IsFlat: Boolean;

Description

The IsFlat property determines whether the cylinder is 3D.

Comments

Use JSON or the setIsFlat method to set the property value and the getIsFlat method to get the property value.

Available Values:

Example

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:

Cylinder