Added masking for boolean commands

This commit is contained in:
Mike Molinari 2022-07-02 01:38:48 +00:00 committed by Val Erastov
parent 48d1073e28
commit 01d0eece16
2 changed files with 37 additions and 1 deletions

View file

@ -63,4 +63,40 @@ export const BooleanOperation: OperationDescriptor<BooleanParams> = {
defaultValue: "UNION", defaultValue: "UNION",
}, },
], ],
masking: [
{
id: 'UNION',
label: 'Union',
icon: 'img/cad/union',
info: 'makes a cut based on 2D sketch',
maskingParams: {
boolean: {
kind: 'UNION'
}
}
},
{
id: 'SUBTRACT',
label: 'Subtract',
icon: 'img/cad/subtract',
info: 'makes a cut based on 2D sketch',
maskingParams: {
boolean: {
kind: 'SUBTRACT'
}
}
},
{
id: 'INTERSECT',
label: 'Intersect',
icon: 'img/cad/intersection',
info: 'makes a cut based on 2D sketch',
maskingParams: {
boolean: {
kind: 'INTERSECT'
}
}
}
]
} }

View file

@ -50,7 +50,7 @@ export const ModelerWorkspace: WorkbenchConfig = {
toolbar: [ toolbar: [
'DATUM_CREATE', 'PLANE', 'EditFace', '-', 'DATUM_CREATE', 'PLANE', 'EditFace', '-',
"EXTRUDE", "CUT", "REVOLVE", "LOFT", "SWEEP", "-", "EXTRUDE", "CUT", "REVOLVE", "LOFT", "SWEEP", "-",
"BOOLEAN", "-", "BOOLEAN", "UNION", "SUBTRACT", "INTERSECT", "-",
"SHELL_TOOL", "FILLET_TOOL", "SCALE_BODY","-", "SHELL_TOOL", "FILLET_TOOL", "SCALE_BODY","-",
"MIRROR_BODY", "PATTERN_LINEAR", "PATTERN_RADIAL", "-", "MIRROR_BODY", "PATTERN_LINEAR", "PATTERN_RADIAL", "-",
"CYLINDER", "BOX", "CONE", "SPHERE", "TORUS", "-", "CYLINDER", "BOX", "CONE", "SPHERE", "TORUS", "-",