start new slice / layer / render system

This commit is contained in:
Stewart Allen 2020-11-06 21:43:28 -05:00
commit 4ca0a26af5
6 changed files with 134 additions and 8 deletions

View file

@ -56,6 +56,7 @@
this.camMode = null; // CAM mode
this.layers = null;
this.finger = null; // cached fingerprint
this.render = null; // will replace most of the layer output data
if (view) this.addLayers(view);
}
@ -112,6 +113,14 @@
* Slice Prototype Functions
******************************************************************* */
/**
* return Render object for this slice. creates it if necessary.
*/
PRO.output = function() {
if (this.render) return this.render;
return this.render = new KIRI.Render();
};
/**
* returns a cloned slice the option of a deep clone on the top polys
*/