Update occt-import-js.

This commit is contained in:
kovacsv 2023-07-17 20:29:43 +02:00
parent 37fa6c9fef
commit ee1e0fbcb4
3 changed files with 14 additions and 8 deletions

Binary file not shown.

14
package-lock.json generated
View File

@ -12,7 +12,7 @@
"@simonwep/pickr": "1.8.2",
"draco3d": "1.5.6",
"fflate": "0.8.0",
"occt-import-js": "0.0.20",
"occt-import-js": "0.0.21",
"rhino3dm": "7.15.0",
"three": "0.154.0",
"web-ifc": "0.0.39"
@ -4349,9 +4349,9 @@
}
},
"node_modules/occt-import-js": {
"version": "0.0.20",
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.20.tgz",
"integrity": "sha512-2rG+YgiaTvR1rLyouJXYO1pmQpOfVNpksYDXI7wq5crHCQ33z4CoAxb4JKiFcarKhREB0zZxy9fMjAA2X6bSCA=="
"version": "0.0.21",
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.21.tgz",
"integrity": "sha512-na+clmW5OmkEeZDtEVKnQNG9l3GIdEZSCN36lYIt+yJ3OM2MM8t5BYYI9Lrqb7sDPLP/Dt6HkjCNGlEd5JKFgQ=="
},
"node_modules/omggif": {
"version": "1.0.10",
@ -9118,9 +9118,9 @@
"dev": true
},
"occt-import-js": {
"version": "0.0.20",
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.20.tgz",
"integrity": "sha512-2rG+YgiaTvR1rLyouJXYO1pmQpOfVNpksYDXI7wq5crHCQ33z4CoAxb4JKiFcarKhREB0zZxy9fMjAA2X6bSCA=="
"version": "0.0.21",
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.21.tgz",
"integrity": "sha512-na+clmW5OmkEeZDtEVKnQNG9l3GIdEZSCN36lYIt+yJ3OM2MM8t5BYYI9Lrqb7sDPLP/Dt6HkjCNGlEd5JKFgQ=="
},
"omggif": {
"version": "1.0.10",

View File

@ -66,11 +66,17 @@ export class ImporterOcct extends ImporterBase
this.model.SetUnit (Unit.Millimeter);
}
let params = {
linearUnit: 'millimeter',
linearDeflectionType: 'bounding_box_ratio',
linearDeflection: 0.001,
angularDeflection: 0.5
};
let fileBuffer = new Uint8Array (fileContent);
this.worker.postMessage ({
format : format,
buffer : fileBuffer,
params : null
params : params
});
}