var m = dojox.gfx3d.matrix.multiply(camera, this.matrix); this.cache = dojo.map(this.object.path, function(item){ return dojox.gfx3d.matrix.multiplyPoint(m, item); }); // add the first point to close the polyline this.cache.push(this.cache[0]);