mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-24 01:15:25 +01:00
19 lines
No EOL
540 B
JavaScript
19 lines
No EOL
540 B
JavaScript
import TPI from './tpi';
|
|
import * as SceneGraph from 'scene/sceneGraph';
|
|
import {BREPSceneSolid} from "../scene/wrappers/brepSceneObject";
|
|
|
|
/*
|
|
* TPI stands for the Test Program Interface
|
|
*/
|
|
export function activate({services}) {
|
|
|
|
function addShellOnScene(shell, skin) {
|
|
const sceneSolid = new BREPSceneSolid(shell, undefined, skin);
|
|
SceneGraph.addToGroup(services.cadScene.workGroup, sceneSolid.cadGroup);
|
|
services.viewer.render();
|
|
return sceneSolid;
|
|
}
|
|
services.tpi = Object.assign({
|
|
addShellOnScene
|
|
}, TPI);
|
|
} |