mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-23 00:45:07 +01:00
added start of get volume action.
This commit is contained in:
parent
5b6e5b7148
commit
24e8a1a501
2 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue