Skip to content

vrjs/widget-axis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple utility to build a THREE.js 3D axis object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published