mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
759 B
759 B
Cone
Creates a cone model. Inherits methods from Model.
Usage
Create a white Cone of base radius 2 and height 3.
var whiteCone = new Cone(gl, {
radius: 2,
height: 3,
cap: true,
colors: [1, 1, 1, 1]
});
Method
constructor
The constructor for the Cone class. Use this to create a new Cone.
var model = new Cone(gl, options);
- nradial - (number, optional) The number of vertices used to create the disk for a given height. Default's 10.
- nvertical - (number, optional) The number of vertices for the height. Default's 10.
- radius - (number) The radius of the base of the cone.
- cap - (boolean, optional) Whether to put the cap on the base of the cone. Default's false.