Added delete body tool

This commit is contained in:
Mike Molinari 2022-07-10 22:25:42 +00:00 committed by Val Erastov
parent 71489032c2
commit b27869327c
2 changed files with 4 additions and 2 deletions

View file

@ -11,7 +11,7 @@ interface DeleteBodyParams {
export const DeleteBodyOperation: OperationDescriptor<DeleteBodyParams> = { export const DeleteBodyOperation: OperationDescriptor<DeleteBodyParams> = {
id: 'DELETE_BODY', id: 'DELETE_BODY',
label: 'DeleteBody', label: 'DeleteBody',
icon: 'img/cad/deleteBody', icon: 'img/cad/intersection',
info: 'Delete Bodies', info: 'Delete Bodies',
paramsInfo: ({ tools, DeleteBody }) => `(${r(tools)} ${r(DeleteBody)})`, paramsInfo: ({ tools, DeleteBody }) => `(${r(tools)} ${r(DeleteBody)})`,
run: (params: DeleteBodyParams, ctx: ApplicationContext) => { run: (params: DeleteBodyParams, ctx: ApplicationContext) => {

View file

@ -19,6 +19,7 @@ import { MirrorBodyOperation} from "./features/mirrorBody/mirrorBody.operation";
import { PatternLinearOperation } from "./features/patternLinear/patternLinear.operation"; import { PatternLinearOperation } from "./features/patternLinear/patternLinear.operation";
import { PatternRadialOperation } from "./features/patternRadial/patternRadial.operation"; import { PatternRadialOperation } from "./features/patternRadial/patternRadial.operation";
import { ImportModelOpperation } from "./features/importModel/importModel.operation"; import { ImportModelOpperation } from "./features/importModel/importModel.operation";
import { DeleteBodyOperation } from "./features/deleteBody/deleteBody.operation";
//imports of action type commands //imports of action type commands
import { GetVolume } from './actions/getVolume/getVolume.action'; import { GetVolume } from './actions/getVolume/getVolume.action';
import {GiCubes} from "react-icons/gi"; import {GiCubes} from "react-icons/gi";
@ -46,6 +47,7 @@ export const ModelerWorkspace: WorkbenchConfig = {
PatternLinearOperation, PatternLinearOperation,
PatternRadialOperation, PatternRadialOperation,
ImportModelOpperation, ImportModelOpperation,
DeleteBodyOperation,
], ],
ui: { ui: {
toolbar: [ toolbar: [
@ -55,7 +57,7 @@ export const ModelerWorkspace: WorkbenchConfig = {
"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", "-",
"HOLE_TOOL", "-", 'GET_VOLUME', "IMPORT_MODEL" "HOLE_TOOL", "-", 'GET_VOLUME', "IMPORT_MODEL","DELETE_BODY"
] ]
}, },
icon: GiCubes icon: GiCubes