jsketcher/web/app/brep/debug/brep-debug.js
2018-01-03 01:45:51 -08:00

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());