move merge vertices and compute normals to slice actions

This commit is contained in:
casperlamboo 2017-05-26 17:12:01 +02:00 committed by Simon Voordouw
parent 8b3a33eb86
commit 1fa98ae6de
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);