Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference


A scenegraph model node with a ConeGeometry.


Create a cone of base radius 2 and height 3.

import {Cone} from '';
const cone = new Cone(gl, {
  radius: 2,
  height: 3,
  cap: true


Cone extends ModelNode extends ScenegraphNode


constructor(gl : WebGLRenderingContext, props : Object)

The constructor for the Cone class. Use this to create a new Cone.

  • props.nradial - (number, optional) The number of vertices used to create the disk for a given height. Default's 10.
  • props.nvertical - (number, optional) The number of vertices for the height. Default's 10.
  • props.radius - (number) The radius of the base of the cone.
  • props.cap - (boolean, optional) Whether to put the cap on the base of the cone. Default's false.