1.0.7 • Published 5 years ago

three-gcode-loader v1.0.7

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

three-gcode-loader

THREE.GCodeLoader from the official repo examples repackaged as a node module, with request header and credentials support

Install

npm i --save three

npm i --save three-gcode-loader

Usage

Returns an array layer vertices and an array of indices which indicate layer boundaries.

import * as THREE from 'three';
import GCodeLoader from 'three-gcode-loader';

var loader = new GCodeLoader()

loader.setRequestHeader({ Authorization: 'Bearer token' });
loader.setWithCredentials(true);

loader.load('https://secured-api/path/to/file.gcode', function (data) {
  var layers = data[0];
  var layerIndices = data[1];
});
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago