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

TubeMeshBuffer

Extends:

BufferMeshBuffer → TubeMeshBuffer

Tube mesh buffer. Draws a tube.

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:

MeshBuffer#constructor

Params:

NameTypeAttributeDescription
data Object

attribute object

data.position Float32Array

positions

data.normal Float32Array

normals

data.binormal Float32Array

binormals

data.tangent Float32Array

tangents

data.color Float32Array

colors

data.size Float32Array

sizes

data.picking Picker

picking ids

params BufferParameters

parameter object