mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-11 10:53:45 +01:00
12 lines
No EOL
411 B
JavaScript
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; |