From 28b2daa2cd7f38b6c4dae253a0c6164f4043f295 Mon Sep 17 00:00:00 2001 From: Mike Molinari Date: Tue, 26 Jul 2022 22:23:49 +0000 Subject: [PATCH] flange edge and face atributes non working. --- .../features/smFlange/smFlange.operation.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts b/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts index fd151118..8cce6719 100644 --- a/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts +++ b/modules/workbenches/sheetMetal/features/smFlange/smFlange.operation.ts @@ -65,6 +65,23 @@ export const smFlangeOperation: OperationDescriptor = { targets: [params.face.shell] } + console.log(params.face.shell); + + tools[0].edges.forEach(async (newEdge) => { + params.face.shell.edges.forEach(async (edgeToLookAt) => { + if (JSON.stringify(newEdge.topology.data.tessellation) == JSON.stringify(edgeToLookAt.topology.data.tessellation)) { + console.log("We have a match", edgeToLookAt.productionInfo.sheetMetal.kind); + newEdge.productionInfo ={}; + newEdge.productionInfo = { sheetMetal: { kind: edgeToLookAt.productionInfo.sheetMetal.kind } }; + //newEdge.productionInfo.sheetMetal.kind = edgeToLookAt.productionInfo.sheetMetal.kind; + console.log(newEdge, edgeToLookAt); + console.log(newEdge.productionInfo); + } + }); + }); + + + //return occ.utils.applyBooleanModifier(tools, booleanOperation); return { created: tools,