3D Lingo Dictionary > L-N > numSegments |
![]() |
numSegments
Syntax
member(whichCastmember
).modelResource(whichModelResource
).numSegments
Description
3D property; when used with a model resource whose type is #cylinder
, allows you to get or set the numSegments
property of the model resource.
The numSegments
property determines the number of segments running from the top cap of the cylinder to the bottom cap. This property must be greater than or equal to the default value of 2.
The smoothness of the cylinder's surface depends upon the value specified for this property. The greater the property value the smoother the cylinder's surface will appear.
Example
This statement sets the numSegments
property of the model resource named Cylinder03 to 10.
member("3D World").modelResource("Cylinder03").numSegments = 10
![]() |