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

EllipsoidGeometryBuffer

Extends:

BufferMeshBufferGeometryBuffer → EllipsoidGeometryBuffer

Ellipsoid geometry buffer. Draws ellipsoids.

Example:

var ellipsoidGeometryBuffer = new EllipsoidGeometryBuffer( {
    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 ] ),
} );

Inherited Summary

From class Buffer
public get abstract
public get abstract
public

Free buffer resources

public

Set buffer parameters

public

Set buffer visibility