first approach to history

This commit is contained in:
Val Erastov 2015-01-16 01:02:19 -08:00
parent b3560b726a
commit 0ce0072d76

View file

@ -41,9 +41,29 @@ TCAD.workbench.applyHistory = function(history) {
}
}
};
TCAD.workbench.Cut = function() {
this.depth = null;
this.load = function(data) {
this.depth = data.depth;
};
this.save = function() {
return {
depth : this.depth
};
};
this.apply = function(app, face, faces) {
TCAD.craft.cut(app, face, faces, this.depth);
};
};
TCAD.workbench.Cut.prototype.TYPE = 'CUT';
TCAD.craft = {};