mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-20 15:32:57 +01:00
make sm flange use custom selection capture
This commit is contained in:
parent
f6cc507ad0
commit
15b4a8e6fa
1 changed files with 5 additions and 5 deletions
|
|
@ -30,18 +30,18 @@ export const smFlangeOperation: OperationDescriptor<smFlangeParams> = {
|
|||
|
||||
const tools = occFaces.map((faceName, i) => {
|
||||
const shapeName = "Tool/" + i;
|
||||
var args = [shapeName, faceName, ...params.axis.origin.data(), ...params.axis.direction.negate().data(), params.angle];
|
||||
const args = [shapeName, faceName, ...params.axis.origin.data(), ...params.axis.direction.negate().data(), params.angle];
|
||||
oci.revol(...args);
|
||||
|
||||
return shapeName;
|
||||
});
|
||||
|
||||
const booleanOpperation = {
|
||||
kind:"UNION",
|
||||
const booleanOperation = {
|
||||
kind: "UNION",
|
||||
targets:[params.face.shell]
|
||||
}
|
||||
|
||||
return occ.utils.applyBooleanModifier(tools, booleanOpperation);
|
||||
return occ.utils.applyBooleanModifier(tools, booleanOperation);
|
||||
|
||||
},
|
||||
form: [
|
||||
|
|
@ -54,7 +54,7 @@ export const smFlangeOperation: OperationDescriptor<smFlangeParams> = {
|
|||
{
|
||||
type: 'selection',
|
||||
name: 'face',
|
||||
capture: [EntityKind.FACE],
|
||||
capture: face => face.TYPE === EntityKind.FACE && face.productionInfo?.sheetMetal?.kind === 'THICKNESS',
|
||||
label: 'face',
|
||||
multi: false,
|
||||
defaultValue: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue