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

EllipsoidBuffer

Ellipsoid buffer. Returns an EllipsoidGeometryBuffer

Example:

var ellipsoidBuffer = new EllipsoidBuffer( {
    position: new Float32Array( [ 0, 0, 0 ] ),
    color: new Float32Array( [ 1, 0, 0 ] ),
    radius: new Float32Array( [ 1 ] ),
    majorAxis: new Float32Array( [ 1, 1, 0 ] ),
    minorAxis: new Float32Array( [ 0.5, 0, 0.5 ] ),
} );

Constructor Summary

Public Constructor
public

Public Constructors

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

Params:

NameTypeAttributeDescription
data Object

buffer data

data.position Float32Array

center positions

data.color Float32Array

colors

data.radius Float32Array

radii

data.majorAxis Float32Array

major axis vectors, length defines radius in major direction

data.minorAxis Float32Array

minor axis vectors, length defines radius in minor direction

data.picking Picker
  • optional

picking ids

params BufferParameters
  • optional

parameters object