Cylinder
Cylinder
is a primitive object that creates a cylinder.
Syntax
<Cylinder />
Parameters
All objects share the same base parameters from ComponentObjectProps
.
Name | Type | Description |
---|---|---|
radiusTop | number | The top radius of the cylinder. |
radiusBottom | number | The bottom radius of the cylinder. |
height | number | The height of the cylinder. |
heightSegments | number | The number of segments along the height of the cylinder. |
radialSegments | number | The number of segments around the circumference of the cylinder. |
openEnded | boolean | Whether the cylinder is open-ended or not. |
thetaStart | number | The starting angle of the cylinder. |
thetaLength | number | The angle of the cylinder. |
bloom | boolean | Whether use bloom effect. |
color | ColorType | The base color. |
material | ObjectMaterialMix | The material. |
Example
<Cylinder radiusTop={0.5} radiusBottom={0.5} height={1} />
Available on: Client Server