latest non working hole opperation

This commit is contained in:
Mike Molinari 2022-07-09 22:13:19 +00:00 committed by Val Erastov
parent 0a0ff3a8ae
commit 7c7263d76c
2 changed files with 11 additions and 9 deletions

View file

@ -36,7 +36,7 @@ export const HoleOperation: OperationDescriptor<HoleParams> = {
holeType,
}) => `(${r(depth)} ${r(counterBoreDiameter)}) ${r(counterBoreDepth)})`,
run: (params: HoleParams, ctx: ApplicationContext) => {
run: async (params: HoleParams, ctx: ApplicationContext) => {
console.log(params);
let occ = ctx.occService;
const oci = occ.commandInterface;
@ -74,7 +74,9 @@ export const HoleOperation: OperationDescriptor<HoleParams> = {
}
let ptr = Interrogate("result", true).ptr;
SetLocation(ptr, params.datum.csys.outTransformation.toFlatArray());
console.log(params.datum.csys.outTransformation);
const location = await params.datum.csys.outTransformation.toFlatArray();
SetLocation(ptr, location);
returnObject.created.push(occ.io.getShell("result"));
console.log(returnObject);

14
package-lock.json generated
View file

@ -14,7 +14,7 @@
"earcut": "2.1.1",
"font-awesome": "4.7.0",
"immer": "^9.0.12",
"jsketcher-occ-engine": "1.0.1-2144340d03c052dc3c4bfab1c045ee28a6ba1528",
"jsketcher-occ-engine": "1.0.1-0cd4fdc77e9c85bbbe6951d90646bd3361ab6797",
"jszip": "^3.10.0",
"less": "^3.11.1",
"libtess": "1.2.2",
@ -9164,9 +9164,9 @@
}
},
"node_modules/jsketcher-occ-engine": {
"version": "1.0.1-56d3ea00d3847efc527b0197be5c5b28b89e421e",
"resolved": "https://registry.npmjs.org/jsketcher-occ-engine/-/jsketcher-occ-engine-1.0.1-56d3ea00d3847efc527b0197be5c5b28b89e421e.tgz",
"integrity": "sha512-nGkfHX6KvyV+2JZkzzynZsbDZ78MK2Y+MWPmeepLGEeVfuHWG97qW66c3g9MzWVM5vEoMwHXpiRncIqr0gOz6w=="
"version": "1.0.1-0cd4fdc77e9c85bbbe6951d90646bd3361ab6797",
"resolved": "https://registry.npmjs.org/jsketcher-occ-engine/-/jsketcher-occ-engine-1.0.1-0cd4fdc77e9c85bbbe6951d90646bd3361ab6797.tgz",
"integrity": "sha512-7f+cDN2efc5JVaTx+zuhOuTLOVpdlIXB8WhuKCusHc3s9toO+cI1GcPDNWxRxys5SWITD+8eb8cPwOsUyF+ObA=="
},
"node_modules/json-parse-better-errors": {
"version": "1.0.2",
@ -23437,9 +23437,9 @@
"dev": true
},
"jsketcher-occ-engine": {
"version": "1.0.1-56d3ea00d3847efc527b0197be5c5b28b89e421e",
"resolved": "https://registry.npmjs.org/jsketcher-occ-engine/-/jsketcher-occ-engine-1.0.1-56d3ea00d3847efc527b0197be5c5b28b89e421e.tgz",
"integrity": "sha512-nGkfHX6KvyV+2JZkzzynZsbDZ78MK2Y+MWPmeepLGEeVfuHWG97qW66c3g9MzWVM5vEoMwHXpiRncIqr0gOz6w=="
"version": "1.0.1-0cd4fdc77e9c85bbbe6951d90646bd3361ab6797",
"resolved": "https://registry.npmjs.org/jsketcher-occ-engine/-/jsketcher-occ-engine-1.0.1-0cd4fdc77e9c85bbbe6951d90646bd3361ab6797.tgz",
"integrity": "sha512-7f+cDN2efc5JVaTx+zuhOuTLOVpdlIXB8WhuKCusHc3s9toO+cI1GcPDNWxRxys5SWITD+8eb8cPwOsUyF+ObA=="
},
"json-parse-better-errors": {
"version": "1.0.2",