path = File.openDialog("open the log file."); str = File.openAsString(path); lines = split(str, ";"); angles = split(lines[0], "[]"); angles = Array.slice(angles, 1, 2); angles = split(angles[0]); anglesDouble = newArray(lengthOf(angles)); for (i=0; i 180){ tangential = tangential - 360; } if (tangential - mean < -180){ tangential = tangential + 360; } anglesDouble[z] = tangential; iterate = true; drawLine(basePointX, basePointY, basePointX + r * cos(anglesDouble[z] * PI / 180), basePointY - r * sin(anglesDouble[z] * PI / 180)); } if (flags&rightButton != 0){ iterate = false; } } f = File.open(""); // display file open dialog fName = File.name; fFolder = File.directory; fPath = fFolder + File.separator + fName; File.close(f); File.append("angleArray = [", fPath); for (i=0; i