mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +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.mergeVertices();
|
||||
geometry.computeFaceNormals();
|
||||
|
||||
this.geometry = geometry;
|
||||
|
||||
return this;
|
||||
|
@ -13,6 +13,9 @@ import applyPrecision from './applyPrecision.js';
|
||||
import removePrecision from './removePrecision.js';
|
||||
|
||||
export default function(geometry, settings) {
|
||||
geometry.mergeVertices();
|
||||
geometry.computeFaceNormals();
|
||||
|
||||
// get unique lines from geometry;
|
||||
const openClosed = detectOpenClosed(geometry);
|
||||
const lines = createLines(geometry, settings, openClosed);
|
||||
|
Loading…
Reference in New Issue
Block a user