this.cache = dojox.gfx3d.scheduler.bsp(this.cache, function(it){ return it; }); if(this.shape){ this.shape.clear(); } else { this.shape = this.renderer.createGroup(); } dojo.forEach(this.cache, function(item){ this.shape.createPolyline(item) .setStroke(this.strokeStyle) .setFill(this.toStdFill(lighting, dojox.gfx3d.vector.normalize(item))); }, this);