mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-26 15:34:57 +01:00
remove stl's and add json files
This commit is contained in:
parent
8988bc4368
commit
b92a35a0c1
@ -1,5 +1,4 @@
|
|||||||
import 'three.js';
|
import 'three.js';
|
||||||
import 'three.js/loaders/STLLoader';
|
|
||||||
import { Settings, printerSettings, userSettings, Slicer } from 'src/index.js';
|
import { Settings, printerSettings, userSettings, Slicer } from 'src/index.js';
|
||||||
import { saveAs } from 'file-saver';
|
import { saveAs } from 'file-saver';
|
||||||
|
|
||||||
@ -8,10 +7,8 @@ const settings = new Settings({
|
|||||||
...userSettings
|
...userSettings
|
||||||
});
|
});
|
||||||
|
|
||||||
const stlLoader = new THREE.STLLoader();
|
const jsonLoader = new THREE.JSONLoader();
|
||||||
stlLoader.load('stl/traktor.stl', async (geometry) => {
|
jsonLoader.load('models/airplane.json', async geometry => {
|
||||||
geometry = new THREE.Geometry().fromBufferGeometry(geometry);
|
|
||||||
|
|
||||||
geometry.applyMatrix(new THREE.Matrix4().makeRotationX(Math.PI / -2));
|
geometry.applyMatrix(new THREE.Matrix4().makeRotationX(Math.PI / -2));
|
||||||
geometry.applyMatrix(new THREE.Matrix4().setPosition(new THREE.Vector3(50, -0.1, 50)));
|
geometry.applyMatrix(new THREE.Matrix4().setPosition(new THREE.Vector3(50, -0.1, 50)));
|
||||||
geometry.mergeVertices();
|
geometry.mergeVertices();
|
||||||
|
55582
example/stl/Airplane.stl
55582
example/stl/Airplane.stl
File diff suppressed because it is too large
Load Diff
94222
example/stl/Rocket.stl
94222
example/stl/Rocket.stl
File diff suppressed because it is too large
Load Diff
Binary file not shown.
36906
example/stl/traktor.stl
36906
example/stl/traktor.stl
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user