mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 19:43:48 +01:00
remove line breaks
This commit is contained in:
parent
b7a630b576
commit
83fa401071
@ -14,7 +14,6 @@ import applyPrecision from './sliceActions/applyPrecision.js';
|
|||||||
import removePrecision from './sliceActions/removePrecision.js';
|
import removePrecision from './sliceActions/removePrecision.js';
|
||||||
|
|
||||||
export default class extends EventDispatcher {
|
export default class extends EventDispatcher {
|
||||||
|
|
||||||
setMesh (mesh) {
|
setMesh (mesh) {
|
||||||
mesh.updateMatrix();
|
mesh.updateMatrix();
|
||||||
|
|
||||||
@ -22,15 +21,12 @@ export default class extends EventDispatcher {
|
|||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
setGeometry (geometry, matrix) {
|
setGeometry (geometry, matrix) {
|
||||||
if (geometry.type === 'BufferGeometry') {
|
if (geometry.type === 'BufferGeometry') {
|
||||||
geometry = new THREE.Geometry().fromBufferGeometry(geometry);
|
geometry = new THREE.Geometry().fromBufferGeometry(geometry);
|
||||||
}
|
} else if (geometry.type.endsWith('Geometry')) {
|
||||||
else if (geometry.type.endsWith('Geometry')) {
|
|
||||||
geometry = geometry.clone();
|
geometry = geometry.clone();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
console.warn('Geometry is not an instance of BufferGeometry or Geometry');
|
console.warn('Geometry is not an instance of BufferGeometry or Geometry');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -46,7 +42,6 @@ export default class extends EventDispatcher {
|
|||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
slice (settings) {
|
slice (settings) {
|
||||||
// get unique lines from geometry;
|
// get unique lines from geometry;
|
||||||
const lines = createLines(this.geometry, settings);
|
const lines = createLines(this.geometry, settings);
|
||||||
@ -63,15 +58,10 @@ export default class extends EventDispatcher {
|
|||||||
const slices = shapesToSlices(shapes, settings);
|
const slices = shapesToSlices(shapes, settings);
|
||||||
|
|
||||||
generateInnerLines(slices, settings);
|
generateInnerLines(slices, settings);
|
||||||
|
|
||||||
generateInfills(slices, settings);
|
generateInfills(slices, settings);
|
||||||
|
|
||||||
generateSupport(slices, settings);
|
generateSupport(slices, settings);
|
||||||
|
|
||||||
addBrim(slices, settings);
|
addBrim(slices, settings);
|
||||||
|
|
||||||
optimizePaths(slices, settings);
|
optimizePaths(slices, settings);
|
||||||
|
|
||||||
removePrecision(slices);
|
removePrecision(slices);
|
||||||
|
|
||||||
const gcode = slicesToGCode(slices, settings);
|
const gcode = slicesToGCode(slices, settings);
|
||||||
|
Loading…
Reference in New Issue
Block a user