vrjs-axis

1.0.0 • Public • Published

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}));

Readme

Keywords

Package Sidebar

Install

npm i vrjs-axis

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • freezer3