import CylinderImpostorBuffer from 'ngl/src/buffer/cylinderimpostor-buffer.js'
CylinderImpostorBuffer
Extends:
Cylinder impostor buffer.
Example:
var cylinderimpostorBuffer = new CylinderImpostorBuffer({
position1: new Float32Array([ 0, 0, 0 ]),
position2: new Float32Array([ 1, 1, 1 ]),
color: new Float32Array([ 1, 0, 0 ]),
color2: new Float32Array([ 0, 1, 0 ]),
radius: new Float32Array([ 1 ])
});
Constructor Summary
Public Constructor | ||
public |
constructor(data: Object, params: BufferParameters) make cylinder impostor buffer |
Member Summary
Public Members | ||
public get |
|
|
public get |
|
|
public |
|
|
public get |
|
|
public get |
|
Method Summary
Public Methods | ||
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 |
getMesh() |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
setAttributes(data: Object) Sets buffer attributes |
|
public |
|
|
public |
setParameters(params: BufferParameters): undefined Set buffer parameters |
|
public |
|
|
public |
|
|
public |
setVisibility(value: Boolean): undefined Set buffer visibility |
|
public |
|
|
public |
|
|
public |
|
|
private |
_getMesh() |
From class MappedBuffer | ||
public get |
|
|
public get |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
From class MappedAlignedBoxBuffer | ||
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
Public Constructors
public constructor(data: Object, params: BufferParameters) source
make cylinder impostor buffer
Override:
MappedBuffer#constructorParams:
Name | Type | Attribute | Description |
data | Object | attribute object |
|
data.position1 | Float32Array | from positions |
|
data.position2 | Float32Array | to positions |
|
data.color | Float32Array | from colors |
|
data.color2 | Float32Array | to colors |
|
data.radius | Float32Array | radii |
|
data.picking | Picker | picking ids |
|
params | BufferParameters | parameter object |