use npm version of three.js

This commit is contained in:
casperlamboo
2017-07-18 12:38:03 +02:00
parent e54d077db0
commit 1d2a9ba965
11 changed files with 200 additions and 151 deletions

View File

@ -1,4 +1,4 @@
import * as THREE from 'three.js';
import * as THREE from 'three';
const MOVE = 'G';
const M_COMMAND = 'M';

View File

@ -1,4 +1,4 @@
import * as THREE from 'three.js';
import * as THREE from 'three';
import slice from './sliceActions/slice.js';
import SlicerWorker from './slicerWorker.js!worker';
import ProgressPromise from 'progress-promise';

View File

@ -1,4 +1,4 @@
import * as THREE from 'three.js';
import * as THREE from 'three';
export default function calculateLayersIntersections(lines, settings) {
const { layerHeight, dimensions: { z: dimensionsZ } } = settings;

View File

@ -1,4 +1,4 @@
import * as THREE from 'three.js';
import * as THREE from 'three';
function addLine(geometry, lineLookup, lines, a, b, isFlat) {
const index = lines.length;

View File

@ -1,4 +1,4 @@
import * as THREE from 'three.js';
import * as THREE from 'three';
import Shape from 'Doodle3D/clipper-js';
export default function intersectionsToShapes(layerIntersectionIndexes, layerIntersectionPoints, lines, settings) {

View File

@ -1,4 +1,4 @@
import * as THREE from 'three.js';
import * as THREE from 'three';
import Shape from 'Doodle3D/clipper-js';
export default function optimizePaths(slices, settings) {

View File

@ -1,5 +1,5 @@
import slice from './sliceActions/slice.js';
import * as THREE from 'three.js';
import * as THREE from 'three';
const loader = new THREE.JSONLoader();