mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 10:25:36 +01:00
34 lines
No EOL
539 B
JavaScript
34 lines
No EOL
539 B
JavaScript
|
|
class BRepDebug {
|
|
|
|
constructor() {
|
|
this.booleanSessions = [];
|
|
}
|
|
|
|
startBooleanSession(a, b, type) {
|
|
this.currentBooleanSession = new BooleanSession(a, b, type)
|
|
this.booleanSessions.push(this.currentBooleanSession);
|
|
}
|
|
|
|
|
|
}
|
|
|
|
class BooleanSession {
|
|
|
|
constructor(a, b, type) {
|
|
this.inputOperandA = a;
|
|
this.inputOperandB = b;
|
|
}
|
|
|
|
setWorkingOperands(a, b) {
|
|
this.workingOperandA = a;
|
|
this.workingOperandB = b;
|
|
}
|
|
|
|
setResult(result) {
|
|
this.result = result;
|
|
}
|
|
|
|
}
|
|
|
|
export default (new BRepDebug());
|