if(this.shape){ this.shape.setShape({points: this.cache}); }else{ this.shape = this.renderer.createPolyline({points: this.cache}); } this.shape.setStroke(this.strokeStyle) .setFill(this.toStdFill(lighting, dojox.gfx3d.matrix.normalize(this.cache)));