jsketcher/web/app/cad/scene/wrappers/entityIO.js
2022-08-15 23:47:20 -07:00

12 lines
No EOL
411 B
JavaScript

import {readBrep} from 'brep/io/brepIO';
import {MBrepShell} from 'cad/model/mshell';
export function readShellEntityFromJson(data, productionAnalyzer, csys) {
const shell = readBrep(data);
if (productionAnalyzer) {
productionAnalyzer.assignIdentification(shell)
}
return new MBrepShell(shell, csys);
}
const getRef = brepFace => brepFace && brepFace.data.externals && brepFace.data.externals.ref;