Skip to main content

Cylinder

Cylinder is a primitive object that creates a cylinder.

Syntax

<Cylinder />

Parameters

All objects share the same base parameters from ComponentObjectProps.

NameTypeDescription
radiusTopnumberThe top radius of the cylinder.
radiusBottomnumberThe bottom radius of the cylinder.
heightnumberThe height of the cylinder.
heightSegmentsnumberThe number of segments along the height of the cylinder.
radialSegmentsnumberThe number of segments around the circumference of the cylinder.
openEndedbooleanWhether the cylinder is open-ended or not.
thetaStartnumberThe starting angle of the cylinder.
thetaLengthnumberThe angle of the cylinder.
bloombooleanWhether use bloom effect.
colorColorTypeThe base color.
materialObjectMaterialMixThe material.

Example

<Cylinder radiusTop={0.5} radiusBottom={0.5} height={1} />

Available on: Client Server