Cone
The Cone is a 3D primitive with a pointed apex and circular base. Segment count controls the smoothness of the base circle. Like all 3D shapes, it supports positioning, rotation, and automatic flat shading.
NOTE
For the full API, see the 3D API Reference.
Demo
Usage
ts
import {
createCone,
} from '@ripl/3d';
const cone = createCone({
radius: 1,
height: 2,
segments: 16,
fill: '#cc4444',
});Properties
radius— Base radiusheight— Height from base to apexsegments— Number of radial segments (default16)x/y/z— Position in world space (default0)rotationX/rotationY/rotationZ— Rotation around each axis in radians (default0)