mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 08:53:25 +01:00
brep operand mode / debug framework
This commit is contained in:
parent
effc9b0543
commit
6add3d6c7b
1 changed files with 10 additions and 5 deletions
|
|
@ -38,21 +38,26 @@ function addGlobalDebugActions(app) {
|
|||
for (let e of face.edges) __DEBUG__.AddHalfEdge(e, color);
|
||||
},
|
||||
AddVolume: (shell, color) => {
|
||||
color = color || 0xffffff;
|
||||
app.addShellOnScene(shell, {
|
||||
color,
|
||||
transparent: true,
|
||||
opacity: 0.5,
|
||||
});
|
||||
}).__debug__ = true;
|
||||
},
|
||||
HideSolids: () => {
|
||||
app.findAllSolids().forEach(s => s.cadGroup.traverse(o => o.visible = false));
|
||||
app.findAllSolidsOnScene().forEach(s => s.cadGroup.traverse(o => o.visible = false));
|
||||
app.viewer.render();
|
||||
},
|
||||
Clear: () => {
|
||||
while (debugGroup.children.length) debugGroup.remove(debugGroup.children[0]);
|
||||
app.viewer.render();
|
||||
}
|
||||
while (debugGroup.children.length) debugGroup.remove(debugGroup.children[0]);
|
||||
app.viewer.render();
|
||||
},
|
||||
ClearVolumes: () => {
|
||||
app.findAllSolidsOnScene().filter(s => s.__debug__ === true).forEach(s => s.vanish());
|
||||
app.viewer.render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function createLine(a, b, color) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue