i changed nCircles to 10 and printed out all the coords
(lineA is the line within the "dd<400" condition,
lineB is the other one. indexes are i and j)
Code:
LineA[0][0]: 158.08415,47.811424,158.08415,47.811424
LineA[1][1]: 220.40291,280.42963,220.40291,280.42963
LineA[2][2]: 380.9574,540.06433,380.9574,540.06433
LineA[3][3]: 1001.6303,420.28998,1001.6303,420.28998
LineA[4][4]: 506.69843,374.4198,506.69843,374.4198
LineA[5][5]: 206.04227,102.92694,206.04227,102.92694
LineA[6][6]: 324.68802,515.3001,324.68802,515.3001
LineA[7][7]: 372.7746,536.14685,372.7746,536.14685
LineA[8][8]: 669.50446,167.508,669.50446,167.508
LineA[9][9]: 987.21924,217.91843,987.21924,217.91843
the above don't need drawing at all
and all of these lines you are drawing twice but only need to be drawn once
Code:
LineA[0][1]: 158.08415,47.811424,220.40291,280.42963
LineA[1][0]: 220.40291,280.42963,158.08415,47.811424
LineA[1][2]: 220.40291,280.42963,380.9574,540.06433
LineA[2][1]: 380.9574,540.06433,220.40291,280.42963
LineA[1][4]: 220.40291,280.42963,506.69843,374.4198
LineA[4][1]: 506.69843,374.4198,220.40291,280.42963
LineA[2][4]: 380.9574,540.06433,506.69843,374.4198
LineA[4][2]: 506.69843,374.4198,380.9574,540.06433
LineA[0][5]: 158.08415,47.811424,206.04227,102.92694
LineA[5][0]: 206.04227,102.92694,158.08415,47.811424
LineA[1][5]: 220.40291,280.42963,206.04227,102.92694
LineA[5][1]: 206.04227,102.92694,220.40291,280.42963
LineA[1][6]: 220.40291,280.42963,324.68802,515.3001
LineA[6][1]: 324.68802,515.3001,220.40291,280.42963
LineA[1][7]: 220.40291,280.42963,372.7746,536.14685
LineA[7][1]: 372.7746,536.14685,220.40291,280.42963
LineA[2][6]: 380.9574,540.06433,324.68802,515.3001
LineA[6][2]: 324.68802,515.3001,380.9574,540.06433
LineA[2][7]: 380.9574,540.06433,372.7746,536.14685
LineA[7][2]: 372.7746,536.14685,380.9574,540.06433
LineA[3][9]: 1001.6303,420.28998,987.21924,217.91843
LineA[9][3]: 987.21924,217.91843,1001.6303,420.28998
LineA[4][6]: 506.69843,374.4198,324.68802,515.3001
LineA[6][4]: 324.68802,515.3001,506.69843,374.4198
LineA[4][7]: 506.69843,374.4198,372.7746,536.14685
LineA[7][4]: 372.7746,536.14685,506.69843,374.4198
LineA[4][8]: 506.69843,374.4198,669.50446,167.508
LineA[8][4]: 669.50446,167.508,506.69843,374.4198
LineA[6][7]: 324.68802,515.3001,372.7746,536.14685
LineA[7][6]: 372.7746,536.14685,324.68802,515.3001
LineA[8][9]: 669.50446,167.508,987.21924,217.91843
LineA[9][8]: 987.21924,217.91843,669.50446,167.508
and then there are these that you have to draw all of
Code:
LineB[4][5]: 401.4797,283.92218,411.4797,283.92218
LineB[5][4]: 301.261,193.42456,311.261,193.42456
LineB[5][4]: 306.261,188.42456,306.261,198.42456
LineB[4][5]: 406.4797,278.92218,406.4797,288.92218