mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 21:47:59 +01:00
move merge vertices and compute normals to slice actions
This commit is contained in:
parent
8b3a33eb86
commit
1fa98ae6de
@ -23,9 +23,6 @@ export default class {
|
|||||||
geometry.applyMatrix(matrix);
|
geometry.applyMatrix(matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
geometry.mergeVertices();
|
|
||||||
geometry.computeFaceNormals();
|
|
||||||
|
|
||||||
this.geometry = geometry;
|
this.geometry = geometry;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
@ -13,6 +13,9 @@ import applyPrecision from './applyPrecision.js';
|
|||||||
import removePrecision from './removePrecision.js';
|
import removePrecision from './removePrecision.js';
|
||||||
|
|
||||||
export default function(geometry, settings) {
|
export default function(geometry, settings) {
|
||||||
|
geometry.mergeVertices();
|
||||||
|
geometry.computeFaceNormals();
|
||||||
|
|
||||||
// get unique lines from geometry;
|
// get unique lines from geometry;
|
||||||
const openClosed = detectOpenClosed(geometry);
|
const openClosed = detectOpenClosed(geometry);
|
||||||
const lines = createLines(geometry, settings, openClosed);
|
const lines = createLines(geometry, settings, openClosed);
|
||||||
|
Loading…
Reference in New Issue
Block a user