Skip to main content

Cone

Cone is a primitive object that creates a cone.

Syntax

<Cone />

Parameters

All objects share the same base parameters from ComponentObjectProps.

NameTypeDescription
radiusnumberThe radius of the cone.
heightnumberThe height of the cone.
radialSegmentsnumberThe number of segmented faces around the circumference of the cone.
heightSegmentsnumberThe number of rows of faces along the height of the cone.
openEndedbooleanWhether the cone is open-ended or not.
thetaStartnumberThe starting angle of the cone.
thetaLengthnumberThe central angle of the cone.
bloombooleanWhether use bloom effect.
colorColorTypeThe base color.
materialObjectMaterialMixThe material.

Example

<Cone radius={1} height={2} />

Available on: Client Server