EllipsoidBuffer
Ellipsoid buffer. Returns an EllipsoidGeometryBuffer
Example:
var ellipsoidBuffer = new EllipsoidBuffer( {
position: new Float32Array( [ 0, 0, 0 ] ),
color: new Float32Array( [ 1, 0, 0 ] ),
radius: new Float32Array( [ 1 ] ),
majorAxis: new Float32Array( [ 1, 1, 0 ] ),
minorAxis: new Float32Array( [ 0.5, 0, 0.5 ] ),
} );
Constructor Summary
Public Constructor | ||
public |
constructor(data: Object, params: BufferParameters) |
Public Constructors
public constructor(data: Object, params: BufferParameters) source
Params:
Name | Type | Attribute | Description |
data | Object | buffer data |
|
data.position | Float32Array | center positions |
|
data.color | Float32Array | colors |
|
data.radius | Float32Array | radii |
|
data.majorAxis | Float32Array | major axis vectors, length defines radius in major direction |
|
data.minorAxis | Float32Array | minor axis vectors, length defines radius in minor direction |
|
data.picking | Picker |
|
picking ids |
params | BufferParameters |
|
parameters object |