gl-streamtube3d
Visualization module for vector fields.
Example
var createScene = require('gl-plot3d')
var createMesh = require('gl-mesh3d')
var createStreamTube = require('gl-streamtube3d')
var wind = require('dataset-wind')
var scene = createScene()
var bounds = [];
var streamTube = createStreamTube({
startingPositions: positionsArray,
maxLength: 1000,
getVelocity: velocityFunction,
colormap: 'portland'
}, bounds)
var mesh = createMesh(gl, streamTube)
scene.add(mesh)
Try out the example in your browser
Install
npm i gl-streamtube3d
Basic interface
Constructor
var streamTube = require('gl-streamtube3d')(params, bounds)
Creates a stream tube plot of a vector field.
Returns A streamtube plot object that can be passed to gl-mesh3d.
Credits
(c) 2013-2017 Mikola Lysenko, Ilmari Heikkinen. MIT License