createCone
createCone
Creates a cone primitive and adds it to the scene.
Signature
createCone(options?: CreatePrimitiveOptions): Promise<SceneObject>Parameters
Parameter
Type
Required
Description
PrimitiveConeSettings fields
Field
Type
Description
coneRadiusBottom
number
Radius at the base
coneHeight
number
Height of the cone
coneRadiusSegments
number
Radial segments
coneHeightSegments
number
Height segments
coneCloseEnds
boolean
Close the bottom cap
roundnessEnabled
boolean
Enable rounded base edge
roundnessRadius
number
Roundness radius
roundnessRadiusSegments
number
Segments for roundness curve
computeNormals
boolean
Recompute normals
Returns
Promise<SceneObject> - the created object.
Examples
Last updated