added start of get volume action.

This commit is contained in:
Mike Molinari 2022-04-06 01:12:56 +00:00 committed by Val Erastov
parent 5b6e5b7148
commit 24e8a1a501
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,4 @@
import { OCCService } from 'cad/craft/e0/occService';
import { roundValueForPresentation as r } from 'cad/craft/operationHelper';
import { MFace } from "cad/model/mface";
import { MShell } from "cad/model/mshell";
@ -14,13 +15,13 @@ interface getVolumeParams {
}
export const GetVolume: OperationDescriptor<getVolumeParams> = {
id: 'EXTRUDE',
label: 'Extrude',
id: 'GET_VOLUME',
label: 'VOLUME',
icon: 'img/cad/extrude',
info: 'extrudes 2D sketch',
run: (params: getVolumeParams, ctx: ApplicationContext) => {
let occ = ctx.occService;
let occ = ctx.services.OCCService;
const oci = occ.commandInterface;
alert();

View file

@ -49,7 +49,7 @@ export const ModelerWorkspace: WorkbenchConfig = {
"BOOLEAN", "-",
"SHELL_TOOL", "FILLET_TOOL", "OFFSET_TOOL", "MIRROR_BODY", "-",
"CYLINDER", "BOX", "CONE", "SPHERE", "TORUS", "-",
"HOLE_TOOL", "-",
"HOLE_TOOL", "-", 'GET_VOLUME',
]
}
}