NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import GeometryBuffer from 'ngl/src/buffer/geometry-buffer.js'
public interface | source

GeometryBuffer

Extends:

BufferMeshBuffer → GeometryBuffer

Geometry buffer. Base class for geometry-based buffers. Used to draw geometry primitives given a mesh.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public
public
public
public
public
public
public
public get

Method Summary

Public Methods
public
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

Public Constructors

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

Override:

MeshBuffer#constructor

Params:

NameTypeAttributeDescription
data Object

buffer data

data.position Float32Array

positions

data.color Float32Array

colors

data.radius Float32Array

radii

data.picking Picker
  • optional

picking ids

params BufferParameters
  • optional

parameters object

geo BufferGeometry

geometry object

Public Members

public geoIndex source

public geoNormal source

public geoPosition source

public geoPositionCount source

public meshColor source

public meshIndex source

public meshNormal source

public meshPosition source

public positionCount source

public transformedGeoNormal source

public transformedGeoPosition source

public get updateNormals source

Public Methods

public applyPositionTransform() source

public makeIndex() source

public setAttributes() source

Sets buffer attributes

Override:

Buffer#setAttributes