NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import SphereGeometryBuffer from 'ngl/src/buffer/spheregeometry-buffer.js'
public class | source

SphereGeometryBuffer

Extends:

BufferMeshBufferGeometryBuffer → SphereGeometryBuffer

Sphere geometry buffer.

Example:

var sphereGeometryBuffer = new SphereGeometryBuffer({
  position: new Float32Array([ 0, 0, 0 ]),
  color: new Float32Array([ 1, 0, 0 ]),
  radius: new Float32Array([ 1 ])
});

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

Method Summary

Public Methods
public
public

Inherited Summary

From class Buffer
public get
public get
public get abstract
public get
public set
public get
public get
public get
public get
public get abstract
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
public
private
public
public
public

Free buffer resources

public
public
public
public
public
public
public
public
public
public
public
public
public
public

Sets buffer attributes

public
public

Set buffer parameters

public
public
public

Set buffer visibility

public
public
public
private
From class MeshBuffer
public get
public get
From class GeometryBuffer
public get
public
public
public
public
public
public
public
public
public
public
public
public
public
public

Public Constructors

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

Override:

GeometryBuffer#constructor

Params:

NameTypeAttributeDescription
data Object

attribute object

data.position Float32Array

positions

data.color Float32Array

colors

data.radius Float32Array

radii

data.picking Picker
  • optional

picking ids

params BufferParameters

parameter object

Private Members

private _radius source

Public Methods

public applyPositionTransform() source

Override:

GeometryBuffer#applyPositionTransform

public setAttributes() source

Sets buffer attributes

Override:

GeometryBuffer#setAttributes