diff --git a/modules/workbenches/modeler/features/fillet/fillet.operation.ts b/modules/workbenches/modeler/features/fillet/fillet.operation.ts index 4534c7bc..348d0937 100644 --- a/modules/workbenches/modeler/features/fillet/fillet.operation.ts +++ b/modules/workbenches/modeler/features/fillet/fillet.operation.ts @@ -20,39 +20,13 @@ export const FilletOperation: OperationDescriptor = { icon: 'img/cad/fillet', info: 'Fillet/Champher', paramsInfo: ({size, opperationType,}) => `(${r(size)} ${r(opperationType)}})`, - form: [ - { - type: 'selection', - name: 'edges', - capture: [EntityKind.EDGE], - label: 'edges', - multi: true, - defaultValue: { - usePreselection: true, - preselectionIndex: 0 - }, - }, - { - type: 'choice', - style: "dropdown", - label: 'opperationType', - name: 'opperationType', - values: ["Fillet", "Champher"], - defaultValue: "Fillet", - }, - { - type: 'number', - label: 'size', - name: 'size', - defaultValue: 5, - }, - ], - run: (params: FilletParams, ctx: ApplicationContext) => { const occ = ctx.occService; const oci = occ.commandInterface; + console.log(params.edges); + //add all the edges and size to seperate arrays for each shell that edges are selected from const groups = new Map() @@ -99,6 +73,32 @@ export const FilletOperation: OperationDescriptor = { return result; }, - + form: [ + { + type: 'selection', + name: 'edges', + capture: [EntityKind.EDGE], + label: 'edges', + multi: true, + defaultValue: { + usePreselection: true, + preselectionIndex: 0 + }, + }, + { + type: 'choice', + style: "dropdown", + label: 'opperationType', + name: 'opperationType', + values: ["Fillet", "Champher"], + defaultValue: "Fillet", + }, + { + type: 'number', + label: 'size', + name: 'size', + defaultValue: 5, + }, + ], }