// This macro uses the formula // // A = (x1y2-x2y1 + x2y3-x3y2 + ... + xny1-x1yn)/2 // // to calculate the area of the current polygonal // selection and compares that value to the area // calculated by the Measure command. getSelectionCoordinates(x, y); n =x.length; area1 = 0; for (i=1; i