fluidcad 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -101,7 +101,8 @@ export class ExtrudeBase extends SceneObject {
|
|
|
101
101
|
const endFaces = parent.getState('end-faces') || [];
|
|
102
102
|
const excludedEdges = [...startFaces, ...endFaces].flatMap(f => f.getEdges());
|
|
103
103
|
const edges = sideFaces.flatMap(f => f.getEdges())
|
|
104
|
-
.filter(e => !excludedEdges.some(ex => e.getShape().IsSame(ex.getShape())))
|
|
104
|
+
.filter(e => !excludedEdges.some(ex => e.getShape().IsSame(ex.getShape())))
|
|
105
|
+
.filter((e, i, arr) => arr.findIndex(o => o.getShape().IsSame(e.getShape())) === i);
|
|
105
106
|
return this.resolveEdges(edges, args);
|
|
106
107
|
}, this);
|
|
107
108
|
}
|
|
@@ -149,7 +149,8 @@ export class Loft extends SceneObject {
|
|
|
149
149
|
const endFaces = parent.getState('end-faces') || [];
|
|
150
150
|
const excludedEdges = [...startFaces, ...endFaces].flatMap(f => f.getEdges());
|
|
151
151
|
const edges = sideFaces.flatMap(f => f.getEdges())
|
|
152
|
-
.filter(e => !excludedEdges.some(ex => e.getShape().IsSame(ex.getShape())))
|
|
152
|
+
.filter(e => !excludedEdges.some(ex => e.getShape().IsSame(ex.getShape())))
|
|
153
|
+
.filter((e, i, arr) => arr.findIndex(o => o.getShape().IsSame(e.getShape())) === i);
|
|
153
154
|
return this.resolveEdges(edges, args);
|
|
154
155
|
}, this);
|
|
155
156
|
}
|