mirror of
https://github.com/xibyte/jsketcher
synced 2026-02-14 19:33:46 +01:00
flange edge and face atributes non working.
This commit is contained in:
parent
66de2ab289
commit
28b2daa2cd
1 changed files with 17 additions and 0 deletions
|
|
@ -65,6 +65,23 @@ export const smFlangeOperation: OperationDescriptor<smFlangeParams> = {
|
|||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue