mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2025-06-11 18:03:18 +02:00
use npm version of three.js
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import * as THREE from 'three.js';
|
||||
import * as THREE from 'three';
|
||||
|
||||
const MOVE = 'G';
|
||||
const M_COMMAND = 'M';
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user