code: function() {
          var angle, point;
          var ring = this.feature.geometry.components[0];
          // if the number of sides ever changes, create a new geometry
          if(ring.components.length != (this.sides + 1)) {
              this.createGeometry();
              ring = this.feature.geometry.components[0];
          }
          for(var i=0; i<this.sides; ++i) {
              point = ring.components[i];
              angle = this.angle + (i * 2 * Math.PI / this.sides);
              point.x = this.origin.x + (this.radius * Math.cos(angle));
              point.y = this.origin.y + (this.radius * Math.sin(angle));
              point.clearBounds();
          }
      }
docs: Method: modifyGeometry
  Modify the polygon geometry in place.