// Calculates and displays the segment lengths // of segmented line and polygon selections. getSelectionCoordinates(xpoints, ypoints); getPixelSize(unit, pixelWidth, pixelHeight) for (i=1; i