Update occt-import-js.
This commit is contained in:
parent
37fa6c9fef
commit
ee1e0fbcb4
Binary file not shown.
14
package-lock.json
generated
14
package-lock.json
generated
@ -12,7 +12,7 @@
|
|||||||
"@simonwep/pickr": "1.8.2",
|
"@simonwep/pickr": "1.8.2",
|
||||||
"draco3d": "1.5.6",
|
"draco3d": "1.5.6",
|
||||||
"fflate": "0.8.0",
|
"fflate": "0.8.0",
|
||||||
"occt-import-js": "0.0.20",
|
"occt-import-js": "0.0.21",
|
||||||
"rhino3dm": "7.15.0",
|
"rhino3dm": "7.15.0",
|
||||||
"three": "0.154.0",
|
"three": "0.154.0",
|
||||||
"web-ifc": "0.0.39"
|
"web-ifc": "0.0.39"
|
||||||
@ -4349,9 +4349,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/occt-import-js": {
|
"node_modules/occt-import-js": {
|
||||||
"version": "0.0.20",
|
"version": "0.0.21",
|
||||||
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.20.tgz",
|
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.21.tgz",
|
||||||
"integrity": "sha512-2rG+YgiaTvR1rLyouJXYO1pmQpOfVNpksYDXI7wq5crHCQ33z4CoAxb4JKiFcarKhREB0zZxy9fMjAA2X6bSCA=="
|
"integrity": "sha512-na+clmW5OmkEeZDtEVKnQNG9l3GIdEZSCN36lYIt+yJ3OM2MM8t5BYYI9Lrqb7sDPLP/Dt6HkjCNGlEd5JKFgQ=="
|
||||||
},
|
},
|
||||||
"node_modules/omggif": {
|
"node_modules/omggif": {
|
||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
@ -9118,9 +9118,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"occt-import-js": {
|
"occt-import-js": {
|
||||||
"version": "0.0.20",
|
"version": "0.0.21",
|
||||||
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.20.tgz",
|
"resolved": "https://registry.npmjs.org/occt-import-js/-/occt-import-js-0.0.21.tgz",
|
||||||
"integrity": "sha512-2rG+YgiaTvR1rLyouJXYO1pmQpOfVNpksYDXI7wq5crHCQ33z4CoAxb4JKiFcarKhREB0zZxy9fMjAA2X6bSCA=="
|
"integrity": "sha512-na+clmW5OmkEeZDtEVKnQNG9l3GIdEZSCN36lYIt+yJ3OM2MM8t5BYYI9Lrqb7sDPLP/Dt6HkjCNGlEd5JKFgQ=="
|
||||||
},
|
},
|
||||||
"omggif": {
|
"omggif": {
|
||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
|
|||||||
@ -66,11 +66,17 @@ export class ImporterOcct extends ImporterBase
|
|||||||
this.model.SetUnit (Unit.Millimeter);
|
this.model.SetUnit (Unit.Millimeter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let params = {
|
||||||
|
linearUnit: 'millimeter',
|
||||||
|
linearDeflectionType: 'bounding_box_ratio',
|
||||||
|
linearDeflection: 0.001,
|
||||||
|
angularDeflection: 0.5
|
||||||
|
};
|
||||||
let fileBuffer = new Uint8Array (fileContent);
|
let fileBuffer = new Uint8Array (fileContent);
|
||||||
this.worker.postMessage ({
|
this.worker.postMessage ({
|
||||||
format : format,
|
format : format,
|
||||||
buffer : fileBuffer,
|
buffer : fileBuffer,
|
||||||
params : null
|
params : params
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user