NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
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

Member Summary

Public Members
public
public
public
public
public
public
public

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

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

Public Members

public aspectRatio source

public capTriangles source

public capVertices source

public capped source

public meshIndex source

public radialSegments source

public size2 source

Public Methods

public makeIndex() source

public setAttributes() source

Sets buffer attributes

Override:

Buffer#setAttributes