mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-20 23:43:27 +01:00
37 lines
No EOL
589 B
JavaScript
37 lines
No EOL
589 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.id = ID_COUNTER ++;
|
|
this.inputOperandA = a;
|
|
this.inputOperandB = b;
|
|
}
|
|
|
|
setWorkingOperands(a, b) {
|
|
this.workingOperandA = a;
|
|
this.workingOperandB = b;
|
|
}
|
|
|
|
setResult(result) {
|
|
this.result = result;
|
|
}
|
|
|
|
}
|
|
|
|
let ID_COUNTER = 1;
|
|
|
|
export default (new BRepDebug());
|