3D Lingo Dictionary > T-Z > topRadius |  |

topRadius

Syntax

    modelResourceObjectReference.topRadius

Description

3D command; when used with a model resource whose type is `#cylinder`, allows you to both get and set the `topRadius` property of the model resource, as a floating-point value.

The `topRadius` property determines the radius of the top cap of the cylinder. This property must always be 0.0 or greater. The default value is 25.0. Setting `topRadius` to 0.0 produces a cone.

Example

This statement sets the `topRadius` property of the model resource Tube to 0.0. If the bottom radius has a value greater than 0, models using Tube will be conical.

    member("3D World").modelResource("Tube").topRadius = 0.0