vrjs-axis
v1.0.0
Published
axis object for vrjs
Downloads
1
Readme
vrjs/axis
Simple utility to build a THREE.js 3D axis object. The module uses node's require module pattern and is meant to be used within the vrjs framework using electron.
Usage
The export is a constructor which accepts a reference to THREE. The constructor
returns a single object that has a make
functions which returns the axis.
var axis = require('..')(THREE);
mesh.add(axis.make());
See example for more context.
Options
The make
function can accept an options object. The following properties are supported:
- neg: boolean value, indicating if negative dimensions (dashed) should be shown. Default is false
- length: length (pixels) of axes. Default is 250
var axis = require('..')(THREE);
mesh.add(axis.make({neg:true, length:300}));