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

RibbonBuffer

Extends:

BufferMeshBuffer → RibbonBuffer

Ribbon buffer. Draws a thin ribbon.

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.dir Float32Array

binormals

data.color Float32Array

colors

data.size Float32Array

sizes

data.picking Picker

picking ids

params BufferParameters

parameter object