gl-cone3d
Visualization module for vector fields.
Example
var createScene = require('gl-plot3d')
var createConePlot = require('gl-cone3d')
var createMesh = createConePlot.createConeMesh
var wind = require('dataset-wind')
var scene = createScene()
var bounds = [];
var conePlot = createConePlot({
positions: wind.positions,
vectors: wind.vectors,
coneSize: 4,
colormap: 'portland'
}, bounds)
var mesh = createMesh(gl, conePlot)
scene.add(mesh)
Try out the example in your browser
Install
npm i gl-cone3d
Basic interface
Constructor
var conePlot = require('gl-cone3d')(params, bounds)
Creates a cone plot of a vector field.
Returns A cone plot object that can be passed to gl-mesh3d.
Credits
(c) 2013-2017 Mikola Lysenko, Ilmari Heikkinen. MIT License