ngraph.three
This is a 3d graph renderer, which uses three.js as a rendering engine. This library is a part of ngraph project. Please check out ngraph.pixel - it is also developed with three.js, however it uses lower level primitive (ShaderMaterial) which allows it to be really fast (the price is flexibility of your UI model).
usage
Basic example:
// Create graph:var createGraph = ;var graph = ;graph;// And render itvar nthree = ;var graphics = ;graphics; // begin animation loop
Very often it is required to do something with scene before animation frame is rendered. To do so
use onFrame()
callback:
var nthree = ;var graphics = ;graphics;graphics; // begin animation loop
Configuration
You can configure renderer in many ways. To do so you can pass settings
object to the function. Calling
var nthree = ;var graphics = ;
Is equivalent of calling:
var nthree = ;var graphics =;
You can always override any of these settings with your own.
examples
Many examples are available in ngraph repository
install
With npm do:
npm install ngraph.three
license
MIT