get info action and test feature added

This commit is contained in:
mmiscool 2023-06-04 00:25:38 +00:00
parent 87666bacbd
commit ee43515401
4 changed files with 12476 additions and 39 deletions

View file

@ -110,10 +110,11 @@ Generate `Tauri` Build for desktop
### Install Tauri Deps
Navigate to the [scripts](./scripts/) folder and run the following command:
Run the following command:
```bash
chmod +x ./setup_tauri.sh
chmod +x ./scripts/setup_tauri_dev_linux.sh
sudo ./scripts/setup_tauri_dev_linux.sh
```

View file

@ -24,6 +24,7 @@ export const GetInfo: any = {
const targetBody = params.targetBody;
let resultingMessage = "";
console.log(params);
if (targetBody instanceof MEdge){

View file

@ -1,36 +1,37 @@
import {WorkbenchConfig} from "cad/workbench/workbenchService";
import { WorkbenchConfig } from "cad/workbench/workbenchService";
//imports of feature history type commands
import {PrimitiveBoxOperation} from './features/primitiveBox/primitiveBox.operation';
import {ExtrudeOperation} from './features/extrude/extrude.operation';
import {LoftOperation} from './features/loft/loft.operation'
import {PrimitiveConeOperation} from "./features/primitiveCone/PrimitiveCone.operation";
import {PrimitiveCylinderOperation} from "./features/primitiveCylinder/PrimitiveCylinder.operation";
import {PrimitiveSphereOperation} from "./features/primitiveSphere/PrimitiveSphere.operation";
import {PrimitiveTorusOperation} from "./features/primitiveTorus/PrimitiveTorus.operation";
import {HoleOperation} from "./features/hole/Hole.operation";
import {FilletOperation} from "./features/fillet/fillet.operation";
import {DraftFacesOperation} from "./features/draftFace/draftFaces.operation";
import {BooleanOperation} from "./features/boolean/boolean.operation";
import {SimplifyOperation} from "./features/simplify/simplify.operation";
import {RevolveOperation} from "./features/revolve/revolve.operation";
import {ShellOperation} from "./features/shell/shell.operation";
import {SweepOperation} from "./features/sweep/sweep.operation";
import {ScaleOperation} from "./features/scaleBody/scaleBody.operation";
import {MirrorBodyOperation} from "./features/mirrorBody/mirrorBody.operation";
import {PatternLinearOperation} from "./features/patternLinear/patternLinear.operation";
import {PatternRadialOperation} from "./features/patternRadial/patternRadial.operation";
import {ImportModelOperation} from "./features/importModel/importModel.operation";
import {DeleteBodyOperation} from "./features/deleteBody/deleteBody.operation";
import {DefeatureRemoveFaceOperation} from "./features/defeatureRemoveFace/defeatureRemoveFace.operation";
import { PrimitiveBoxOperation } from './features/primitiveBox/primitiveBox.operation';
import { ExtrudeOperation } from './features/extrude/extrude.operation';
import { LoftOperation } from './features/loft/loft.operation'
import { PrimitiveConeOperation } from "./features/primitiveCone/PrimitiveCone.operation";
import { PrimitiveCylinderOperation } from "./features/primitiveCylinder/PrimitiveCylinder.operation";
import { PrimitiveSphereOperation } from "./features/primitiveSphere/PrimitiveSphere.operation";
import { PrimitiveTorusOperation } from "./features/primitiveTorus/PrimitiveTorus.operation";
import { HoleOperation } from "./features/hole/Hole.operation";
import { FilletOperation } from "./features/fillet/fillet.operation";
import { DraftFacesOperation } from "./features/draftFace/draftFaces.operation";
import { BooleanOperation } from "./features/boolean/boolean.operation";
import { SimplifyOperation } from "./features/simplify/simplify.operation";
import { RevolveOperation } from "./features/revolve/revolve.operation";
import { ShellOperation } from "./features/shell/shell.operation";
import { SweepOperation } from "./features/sweep/sweep.operation";
import { ScaleOperation } from "./features/scaleBody/scaleBody.operation";
import { MirrorBodyOperation } from "./features/mirrorBody/mirrorBody.operation";
import { PatternLinearOperation } from "./features/patternLinear/patternLinear.operation";
import { PatternRadialOperation } from "./features/patternRadial/patternRadial.operation";
import { ImportModelOperation } from "./features/importModel/importModel.operation";
import { DeleteBodyOperation } from "./features/deleteBody/deleteBody.operation";
import { DefeatureRemoveFaceOperation } from "./features/defeatureRemoveFace/defeatureRemoveFace.operation";
import { WireLineOperation } from "./features/wireLine/wireLine";
import { MoveBodyOperation } from "./features/moveBody/moveBody.operation";
import { TestFeatureOperation } from "./features/testFeature/testFeature.operation";
//import {TestOperation} from "./features/test/test.operation";
//imports of action type commands
import {GetInfo} from "./actions/getInfo/getInfo.action";
import {ExportBREP} from "./actions/exportBREP/exportBREP.action";
import { GetInfo } from "./actions/getInfo/getInfo.action";
import { ExportBREP } from "./actions/exportBREP/exportBREP.action";
//import workbench icon
import {GiCubes} from "react-icons/gi";
import { GiCubes } from "react-icons/gi";
export const ModelerWorkspace: WorkbenchConfig = {
@ -61,37 +62,38 @@ export const ModelerWorkspace: WorkbenchConfig = {
WireLineOperation,
MoveBodyOperation,
SimplifyOperation,
TestFeatureOperation,
//TestOperation,
GetInfo,
ExportBREP,
],
actions: [
//GetVolume,
//GetVolume,
],
ui: {
toolbar: [
['DATUM_CREATE', 'PLANE', 'EditFace'],
["EXTRUDE", "CUT", "REVOLVE", "LOFT", "SWEEP"],
["UNION", "SUBTRACT", "INTERSECT", "SIMPLIFY"],
["EXTRUDE", "CUT", "REVOLVE", "LOFT", "SWEEP"],
["SHELL_TOOL", "FILLET_TOOL","DRAFT_FACES", "SCALE_BODY", "DEFEATURE_REMOVE_FACE"],
["UNION", "SUBTRACT", "INTERSECT", "SIMPLIFY"],
["MIRROR_BODY", "PATTERN_LINEAR", "PATTERN_RADIAL", "MOVE_BODY"] ,
["SHELL_TOOL", "FILLET_TOOL", "DRAFT_FACES", "SCALE_BODY", "DEFEATURE_REMOVE_FACE"],
["CYLINDER", "BOX", "CONE", "SPHERE", "TORUS"],
["MIRROR_BODY", "PATTERN_LINEAR", "PATTERN_RADIAL", "MOVE_BODY"],
["HOLE_TOOL"],
["CYLINDER", "BOX", "CONE", "SPHERE", "TORUS"],
["HOLE_TOOL"],
["IMPORT_MODEL", "DELETE_BODY"],
["WIRE_LINE"],
["WIRE_LINE"],
['EXPORT_BREP', 'GET_INFO'],
['EXPORT_BREP', 'GET_INFO'],
//["TEST"]
['TestFeature_TOOL'],
]
},

12433
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff