NGL@0.10.4 Home Manual Reference Source GalleryRepository
import ConeGeometryBuffer from 'ngl/src/buffer/conegeometry-buffer.js'
public class | source

ConeGeometryBuffer

Extends:

BufferMeshBufferGeometryBuffer → ConeGeometryBuffer

Cone geometry buffer.

Example:

var coneGeometryBuffer = new ConeGeometryBuffer( {
    position1: new Float32Array( [ 0, 0, 0 ] ),
    position2: new Float32Array( [ 1, 1, 1 ] ),
    color: new Float32Array( [ 1, 0, 0 ] ),
    color2: new Float32Array( [ 0, 1, 0 ] ),
    radius: new Float32Array( [ 1 ] )
} );

Constructor Summary

Public Constructor
public

Inherited Summary

From class Buffer
public get abstract
public get abstract
public

Free buffer resources

public

Set buffer parameters

public

Set buffer visibility

Public Constructors

public constructor(data: Object, params: BufferParameters) source

Override:

GeometryBuffer#constructor

Params:

NameTypeAttributeDescription
data Object

buffer data

data.position1 Float32Array

from positions

data.position2 Float32Array

to positions

data.color Float32Array

colors

data.radius Float32Array

radii

data.picking Picker
  • optional

picking ids

params BufferParameters
  • optional

parameters object