Skip to content

Instantly share code, notes, and snippets.

@cmpbl
Created September 29, 2016 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmpbl/d231f172e6bc20ad81065c91256d6576 to your computer and use it in GitHub Desktop.
Save cmpbl/d231f172e6bc20ad81065c91256d6576 to your computer and use it in GitHub Desktop.
Processing script for a vector globe that charts travel paths e.g., http://www.jamie-campbell.com/projects/#/travel-vectorized/
/*************************************************************************
*
* Created by Jamie Campbell, 2016
* For more information see http://jamie-campbell.com
*
*************************************************************************/
// GLOBAL CONFIGURATION & INITIALIZATION
int r = 150; // define the radius of the globe
int bgcolor = #ffffff; // set background color
int lncolor = 0; // set line color
float rot = 0; // initialize rotation value of 0
int standoff = 2; // distance separation of outlines from globe surface
int pin_extension = 20; // specify length to pin away from globe surface
// define travel history here an array of coordinates listed in the order visited
float[][] travel_history = {
{40.7128,-74.0059},
{40.7128,-74.0059},
{40.7128,-74.0059},
{35.6895,139.6917},
{39.7392,-104.9903},
{38.6270,-90.1994},
{40.7128,-74.0059},
{40.7128,-74.0059}
};
// SCENE SETUP
void setup()
{
// CONFIGURATION & INITIALIZATION
int r = 150; // define the radius of the globe
int bgcolor = #ffffff; // set background color
int lncolor = 0; // set line color
size(500, 400, P3D); // set scene dimesions, and specify P3D engine
ortho();
frameRate(28);
}
// EXECUTED EACH FRAME
void draw() {
translate(width/2, height/2, 0);
rotateX(radians(-30)); // rotate the scene slightly for a more intriguing perspective
rotateZ(radians(10));
rotateY(radians(rot)); // rotate the globe half a degree each frame
rot+=.5;
background(bgcolor);
// customize sphere style and draw sphere
noFill();
stroke(lncolor,10);
sphereDetail(20);
sphere(r-10);
// call outlineWorld() to draw the continents
outlineWorld();
// call drawTravelHistory() to draw the travel path
drawTravelHistory();
}
// HELPER FUNCTIONS
float[] coord_to_xyz (float lat, float lon, float rad) { // turn coordinates to x, y, z values that can be drawn
float x = cos( radians(-lat) ) * cos( radians(-lon) ) * (rad);
float y = sin( radians(-lat) ) * (rad);
float z = cos( radians(-lat) ) * sin( radians(-lon) ) * (rad);
float[] xyz = { x, y, z };
return xyz;
}
void plotCoordSpherePin(float lat, float lon, float rad) { // draw a pin at a given latitude and longitude, and globe radius rad
float[] xyz_head = coord_to_xyz(lat, lon, rad + pin_extension);
float[] xyz_base = coord_to_xyz(lat, lon, rad );
pushMatrix();
translate(xyz_head[0], xyz_head[1], xyz_head[2]);
sphereDetail(20);
sphere(1);
popMatrix();
pushMatrix();
line(xyz_head[0], xyz_head[1], xyz_head[2], xyz_base[0], xyz_base[1], xyz_base[2]);
popMatrix();
}
void drawTravelHistory() { // draw travel path lines and pins on the basis of travel_history
// set line style for pins and paths
stroke(lncolor,80);
strokeWeight(2);
// for each coordinate, draw a pin at that location
for (float[] coord : travel_history){
plotCoordSpherePin(coord[0], coord[1], r);
}
// for each coordinate, draw a line to it from the prior pin, and then iterate to the next coordinate
beginShape();
for (float[] coord : travel_history){
float[] xyz = coord_to_xyz(coord[0], coord[1], r + standoff);
vertex(xyz[0], xyz[1], xyz[2]);
}
endShape();
}
void outlineWorld() { // draw the outlines of the continents
// set line style for continents
strokeWeight(1);
stroke(lncolor,80);
// supply coordinates as an array in the form of: [unique line][specific vertex]
float[][][] world_coords =
{{
{49.1529697,-123.2226562},
{48.2831929,-123.1347656},
{48.5747899,-124.7167969},
{42.0329743,-124.7167969},
{34.23451240000001,-120.0585937},
{32.3985158,-116.71875000000001},
{26.5099045,-113.4667969},
{22.8369459,-109.5996094},
{31.4286631,-113.8183594},
{21.8614987,-105.38085940000002},
{19.1451682,-105.5566406},
{15.7076628,-96.2402344},
{16.3833911,-94.4824219},
{13.752724700000002,-91.6699219},
{12.6403383,-87.6269531},
{8.1462428,-82.96875},
{7.536764300000001,-77.7832031},
{3.2502086,-77.34375},
{-2.2845507,-81.0351562},
{-11.1784019,-77.6953125},
{-18.729502000000004,-70.3125},
{-37.4399741,-73.3886719},
{-48.5747899,-75.4101562},
{-53.6967065,-73.9160156},
{-55.627996,-69.3237305},
{-54.7246202,-65.4785156}
},{
{-53.5664142,-68.0712891},
{-50.68079710000001,-69.2578125},
{-39.3002992,-61.9189453},
{-26.1948767,-48.647460900000006},
{-19.7667036,-39.6386719},
{-6.6209573,-34.8046875},
{-2.8552628,-39.9023437},
{0.4833927,-50.2294922},
{5.3535214,-52.4707031},
{10.574222100000002,-63.1494141},
{12.2541277,-72.0263672},
{8.4941045,-76.9042969},
{9.7956776,-79.3212891},
{8.8850717,-81.9140625},
{11.005904500000002,-83.7158203},
{15.0721235,-83.3203125},
{16.130262,-88.5498047},
{21.4939636,-86.7041016},
{21.2484222,-90.4394531},
{18.6878787,-91.3623047},
{18.8543104,-96.10839840000001},
{23.2817192,-97.9101562},
{29.496987600000004,-95.2294922},
{30.221101899999997,-88.6816406},
{29.878755299999998,-83.5400391},
{27.137368400000003,-82.5732422},
{25.0855989,-80.9033203},
{25.244696,-80.15625000000001},
{27.2936892,-79.8925781},
{30.713503999999997,-81.4746094},
{32.9902356,-79.3212891},
{35.3173663,-75.8056641},
{38.4449847,-76.5087891},
{37.4748581,-75.6298828},
{40.6139524,-73.9160156},
{41.7713117,-69.7851562},
{41.9349765,-70.7519531},
{43.548548100000005,-70.3125},
{44.9647979,-66.8847656},
{45.8900082,-64.4677734},
{45.3675844,-64.9072266},
{44.5278428,-66.09375},
{43.3890819,-65.5664062},
{45.9205873,-59.94140620000001},
{47.1000447,-60.46875},
{45.9511497,-61.6992187},
{46.407564,-64.7753906},
{48.0780789,-65.9619141},
{48.2246726,-64.5996094},
{49.3537557,-64.3798828},
{48.7779128,-68.0712891},
{47.8426576,-70.09277340000001},
{49.1529697,-68.3789062},
{50.1487464,-66.4013672},
{50.1487464,-60.55664060000001},
{51.3443387,-57.65624999999999},
{52.133488,-55.7226562},
{53.6185794,-55.8544922},
{55.627996,-60.6445312},
{60.3269477,-64.7753906},
{58.2401635,-67.5},
{59.085738600000006,-69.2138672},
{61.05828540000001,-69.6972656},
{62.4717237,-73.6962891},
{62.4717237,-78.1347656},
{59.534318,-77.7832031},
{58.676937699999996,-78.8378906},
{57.3265212,-76.7285156},
{55.4539413,-76.9921875},
{54.6229781,-79.4970703},
{51.9713458,-78.7060547},
{51.2344074,-79.9365234},
{52.8293209,-82.3535156},
{55.1537663,-82.265625},
{56.728622,-88.7695312},
{57.016814000000004,-92.4169922},
{58.836490100000006,-93.2519531},
{58.8819421,-94.5703125},
{61.2491021,-94.2626953},
{65.1830301,-86.9238281},
{66.372755,-86.0449219},
{66.337505,-84.2871094},
{67.1358294,-80.4199219},
{68.4960402,-82.1777344},
{69.3803127,-81.7382812},
{69.8093087,-85.6054687},
{68.9741636,-85.6054687},
{67.2040323,-87.0117187},
{68.3019045,-88.7695312},
{69.0056752,-89.3847656},
{69.0056752,-90.4394531},
{69.8396219,-92.19726560000001},
{71.9653877,-94.3945312},
{72.9196355,-93.0761719},
{73.8248203,-90.4394531},
{74.1160468,-95.0976562},
{72.7640647,-95.625},
{71.6359929,-95.4492187},
{70.5541785,-96.6796875},
{69.3493386,-94.5703125},
{68.5282349,-94.0429687},
{68.3668011,-97.9101562},
{67.8755413,-99.4042969},
{68.2368227,-104.5898437},
{67.7760254,-108.1054687},
{67.8424165,-112.5},
{67.974634,-115.31249999999999},
{68.39918,-113.9941406},
{69.1312712,-115.75195309999998},
{68.8159271,-116.9824219},
{69.9001176,-123.31054690000002},
{69.5345176,-123.8378906},
{70.4955735,-128.2324219},
{69.4112424,-130.4296875},
{70.14036430000002,-130.6054687},
{69.1312712,-136.6699219},
{68.7523149,-135.4394531},
{68.9426068,-138.0761719},
{69.5652259,-139.8339844},
{71.1309877,-156.0058594},
{68.6885206,-166.2890625},
{67.1358294,-163.125},
{66.5832173,-160.6640625},
{66.0893643,-161.9824219},
{66.1960089,-164.17968750000003},
{66.5832173,-163.9160156},
{65.7667267,-167.5195312},
{64.3208716,-165.8496094},
{64.8862654,-161.1914062},
{63.8600359,-160.7519531},
{63.194018400000004,-163.2128906},
{62.5123179,-164.7949219},
{60.15244220000001,-164.8828125},
{59.8006343,-162.1582031},
{58.26328709999999,-161.015625},
{58.768200199999995,-156.7089844},
{57.0885153,-158.5546875},
{52.9618751,-168.13476560000004},
{56.3165367,-157.9394531},
{58.5854357,-153.7207031},
{61.1856247,-150.9082031},
{59.31076800000001,-151.0839844},
{60.370429,-147.2167969},
{61.1007888,-147.2167969},
{60.5437752,-145.1074219},
{59.57885100000001,-138.515625},
{55.9245858,-134.6484375},
{52.9618751,-129.2871094},
{49.7812641,-127.17773440000002},
{48.5747899,-124.7167969},
{49.1529697,-123.2226562}
},{
{19.849394,-156.0058594},
{18.8543104,-155.8740234},
{19.5597901,-154.7314453},
{20.4270128,-155.390625}
},{
{20.344626900000005,-156.5771484},
{21.1664839,-155.9179687},
{22.512557,-159.7851562}
},{
{35.64440592583138,134.18421831341857},
{35.4964561,132.824707},
{34.3797126,131.0009766},
{33.6146193,130.3417969},
{33.339707,129.4628906},
{31.653381399999997,130.1220703},
{31.0905741,130.6713867},
{31.259770000000003,131.3305664},
{32.8795872,131.8798828},
{33.8886575,130.8911133},
{33.9251297,131.6821289},
{34.3615763,133.2641602},
{34.7235549,134.3188477},
{34.6575240466572,135.0},
{34.6151267,135.4174805},
{34.00787543557756,135.0},
{33.9433599,134.9560547},
{33.91696043172055,135.0},
{33.4497766,135.769043},
{34.3797126,136.9335938},
{34.687427899999996,136.5600586},
{34.8859309,136.7797852},
{34.5970415,138.2519531},
{35.012002,138.515625},
{34.5608594,138.8452148},
{35.1558457,139.0429688},
{35.567980500000004,139.6142578},
{35.6215819,139.9658203},
{34.976001499999995,139.6801758},
{34.8318411,140.1196289},
{36.456636,140.7348633},
{37.98947132283403,141.35128463527857},
{39.656456,142.0532227},
{40.8470604,141.4160156},
{40.97989810000001,141.262207},
{40.8969058,140.8447266},
{41.3603187,140.5810547},
{40.6306301,139.921875},
{39.57182219999999,140.2075195},
{37.45741809999999,138.6694336},
{36.8620427,137.1313477},
{37.5794125,137.175293},
{36.1023764,136.0107422},
{35.8178132,136.0766602},
{35.72521284201504,135.9917996062998},
{35.3352932,135.637207},
{35.48963792959839,135.48118435013188},
{35.7465123,135.2197266}
},{
{33.358061600000006,134.1870117},
{33.8886575,134.6704102},
{34.4340979,134.0112305},
{33.6877818,132.5610352},
{32.9718038,132.5390625},
{32.7133554,132.9785156},
{33.504759099999994,133.2641602},
{33.596319,133.7255859}
},{
{42.0329743,143.1738281},
{42.60161990000001,143.4375},
{42.9242518,144.3823242},
{43.08493740000001,145.2832031},
{44.2137099,145.2612305},
{43.9295499,144.6899414},
{43.9928145,143.8330078},
{45.5371367,141.9213867},
{45.2130036,141.5258789},
{44.1191415,141.5698242},
{43.786958399999996,141.394043},
{43.1811471,141.3061523},
{43.389081899999994,140.3613281},
{43.0849374,140.4492188},
{42.5206995,139.7021484},
{42.0166518,140.1196289},
{41.3603187,140.0097656},
{41.7385285,140.4711914},
{41.738528499999994,141.2182617},
{42.1959688,140.3393555},
{42.5854443,140.3833008},
{42.43967419999999,140.9985352},
{42.6501218,141.6137695}
},{
{-12.175935113557768,135.0},
{-11.867350899999998,131.5722656},
{-15.0296858,129.0234375},
{-13.838079899999999,126.65039059999998},
{-20.055931300000005,121.02539060000001},
{-21.6165793,114.3457031},
{-27.7613299,113.4667969},
{-32.69486599999999,116.1035156},
{-34.0890613,115.48828130000001},
{-35.0299964,116.9824219},
{-33.8704156,123.48632809999998},
{-31.578535400000007,129.0234375},
{-32.6208702,133.7695313},
{-34.41948107768884,135.0},
{-34.6693585,135.1757813},
{-32.9902356,137.8125},
{-35.0299964,137.6367188},
{-37.45509190341928,140.003388038057},
{-38.4793947,141.0644531},
{-39.01516536635996,144.1176642697625},
{-39.3002992,145.9863281},
{-37.64903399999999,149.9414063},
{-34.0890613,150.7324219},
{-29.3821751,153.984375},
{-22.9988516,150.7324219},
{-19.7253422,147.1289063},
{-10.919617800000001,142.2949219},
{-17.644021999999996,140.5371094},
{-14.6898814,135.4394531},
{-12.2970683,136.4941406}
},{
{-40.7805414,144.7558594},
{-42.1634034,145.1074219},
{-43.4529189,146.1621094},
{-42.8759641,147.8320313},
{-41.0462168,148.1835938}
},{
{-44.65330619403936,171.10402985725113},
{-42.0329743,174.1992188},
{-40.97989810000001,174.1992188},
{-40.7139558,172.4414063},
{-43.0046471,170.2441406},
{-44.383407735326344,168.1546474082363},
{-45.5832898,166.2011719},
{-45.5832898,165.5859375},
{-46.8000594,169.3652344},
{-44.7779359,170.9472656}
},{
{-39.2322531,173.7597656},
{-39.97712010000001,175.3417969},
{-41.4427264,174.6386719},
{-41.4427264,175.86914060000004},
{-39.70718670000001,177.1875},
{-38.822591,177.1875},
{-37.92686760000001,178.4179688},
{-38.0653924,176.1328125},
{-35.7465123,174.99023440000002},
{-34.8859309,173.1445313},
{-37.7185903,174.9023438}
},{
{40.6139524,26.4111328},
{40.5805847,23.2910156},
{38.2381801,24.4775391},
{36.6684189,21.8408203},
{39.9771201,19.775390600000005},
{41.7713117,19.4238281},
{43.7393521,15.8203125},
{45.5217439,13.8427734},
{45.3675844,12.4804688},
{44.245199,12.3925781},
{43.5166885,13.6669922},
{42.3260624,14.0185547},
{40.8802948,16.875},
{40.747257,17.6660156},
{40.0780714,18.5449219},
{39.7747695,18.0615234},
{40.41349600000001,17.0068359},
{39.6733704,16.6552734},
{39.164141,17.1826172},
{37.8228024,15.7324219},
{38.5481654,15.4248047},
{39.436193,15.952148400000002},
{40.680638,14.414062499999998},
{43.1330612,10.3710938},
{44.0560117,9.84375},
{44.5278428,8.3496094},
{43.1009829,6.0644531},
{43.4848121,3.5595703000000003},
{41.6400784,3.0322266},
{40.6139524,0.1757813},
{38.6168705,-0.0439453},
{36.7388841,-2.2851562},
{36.1023764,-5.8886719},
{37.1252863,-6.7236328},
{37.0551771,-8.9648437},
{39.1982053,-9.4921875},
{42.7792754,-9.0087891},
{43.2932003,-9.4042969},
{43.86621800000001,-7.690429700000001},
{43.580390900000005,-5.9326172},
{43.3890819,-1.9775391},
{46.1037088,-1.0546875},
{47.487513,-2.3291016},
{47.872144,-3.9550781000000006},
{48.5166043,-4.9658203},
{48.8936154,-3.1640625},
{48.7489453,-1.9335937},
{49.6960618,-1.9775391},
{49.3537557,-0.0878906},
{49.8946344,1.0107422},
{50.457504,1.4941406},
{51.2344074,2.5488281},
{53.330873,5.1855469},
{53.4618904,6.8115234},
{53.8784404,8.7451172},
{55.1035161,8.7011719},
{55.7271101,7.8662109},
{57.0646303,8.3935547},
{57.65715759999999,10.6347656},
{56.0229481,10.546875},
{55.1035161,11.0742188},
{54.9523857,10.0634766},
{54.162434,10.546875},
{54.162434,11.5136719},
{54.3933522,13.7109375},
{54.0593879,14.2382813},
{54.8766067,17.3583984},
{54.8006849,18.8964844},
{54.4955675,19.1162109},
{55.4040698,21.4453125},
{56.9209968,21.0498047},
{57.8681318,22.4560547},
{57.0407298,24.4775391}
},{
{51.6725551,-5.0976562},
{51.4266145,-2.8564453},
{50.8198183,-4.6582031},
{49.9794878,-5.6689453},
{50.4295179,-3.3837891},
{50.6250731,-1.7578125},
{50.9030328,0.9228516},
{51.3717804,1.6259766},
{51.6180165,0.9228516},
{52.509534800000004,1.7578125},
{53.0940241,0.8789063},
{52.9618751,0.1757813},
{54.5975279,-0.3955078},
{56.0965558,-2.2851562},
{56.4624905,-3.1201172},
{57.6336399,-1.7138672},
{57.70414720000001,-4.3505859},
{58.332567100000006,-3.1640625},
{58.6997757,-3.515625},
{58.6083337,-5.2294922},
{57.350237500000006,-6.0644531}
},{
{57.350237500000006,-6.0644531},
{55.9737982,-6.0205078},
{55.6899717,-4.7680664},
{54.8133484,-5.1635742},
{54.6356973,-4.8339844},
{54.8133484,-3.5595703000000003},
{54.1881555,-3.1201172},
{53.2914891,-3.1640625},
{53.357108700000005,-4.5483398},
{52.3890111,-4.0869141},
{51.7678399,-5.0976562}
},{
{55.4165436,-7.426757799999999},
{55.1914124,-8.1958008},
{54.7119288,-8.745117200000001},
{54.6992335,-8.195800800000002},
{54.4061431,-8.3496094},
{54.3165232,-9.6899414},
{54.0464891,-9.7558594},
{53.5664142,-10.3491211},
{53.2389206,-9.0527344},
{52.9221514,-9.5361328},
{51.930718299999995,-10.437011699999998},
{51.440312799999994,-9.514160199999997},
{52.0254586,-7.690429700000002},
{52.1874047,-6.350097700000001},
{52.9221514,-5.9985352},
{53.9043382,-6.350097700000001},
{54.4444918,-5.559082},
{55.2290231,-6.1303711000000005}
},{
{58.5166518,-6.306152300000001},
{58.0430041,-7.2729492},
{57.0048503,-7.492675800000001},
{57.9148478,-6.6577148},
{58.3441006,-6.1743164}
},{
{57.421294399999994,24.4335938},
{58.4477328,24.3896484},
{59.175928199999994,23.4667969},
{59.57885100000001,25.3125},
{59.4227275,27.6416016},
{60.06484050000001,30.102539100000005},
{60.5869673,28.2568359},
{60.26161710000001,25.4443359},
{59.8889369,22.983398400000002},
{60.84491059999999,20.8740234},
{62.8952175,21.1376953},
{65.0906456,25.136718800000004},
{65.6944758,24.0380859},
{65.8027764,22.1923828},
{64.8115573,20.7861328},
{64.2636837,21.1816406},
{63.11463760000001,18.28125},
{60.84491059999999,17.0068359},
{60.19615580000001,19.0283203},
{59.04055460000001,19.0722656},
{58.2170249,16.7431641},
{56.38958350000001,16.0400391},
{55.9491998,14.326171900000002},
{55.3291444,13.8867188},
{55.4290135,12.8759766},
{56.2921567,12.65625},
{57.112385,12.1289063},
{59.243414800000004,10.6787109},
{58.768200199999995,9.140625},
{58.2170249,7.6464844},
{59.1308631,5.2734375},
{60.6731786,4.6142578},
{62.4717237,5.8007813},
{63.782486,9.7119141},
{66.5132604,13.1835938},
{68.1715552,15.6005859},
{68.0733047,12.8759766},
{69.0842571,16.4794922},
{70.1104848,20.4785156},
{71.1593914,24.6972656},
{70.5980212,31.1132813},
{69.990535,29.6630859},
{69.5652259,32.3876953},
{68.640555,38.5400391},
{67.4580815,41.6601563},
{66.54826350000002,40.6054688},
{66.0893643,38.0566406},
{66.9816661,32.5195313},
{65.7125575,34.7607422},
{64.4538495,35.0683594},
{63.9566733,37.0458984}
},{
{55.8259733,11.2060547},
{55.2791153,11.293945300000003},
{54.9271419,11.9091797},
{55.652798,12.612304700000001},
{56.1944809,12.1728516}
},{
{37.1603165,10.8984375},
{36.5272948,0.4394531},
{35.0299964,-2.7246094},
{35.38905,-5.1855469},
{36.1023764,-5.8886719},
{33.9433599,-6.8554687},
{31.7281671,-9.5800781},
{29.6116701,-9.6679687},
{27.3717673,-14.1503906},
{21.4530686,-16.875},
{17.727758600000005,-16.4355469},
{13.6673383,-16.6113281},
{11.3507967,-15.2050781},
{5.4410223,-10.1074219},
{4.7406754,-1.3183594},
{5.1784821,8.4375},
{3.1624555,11.1621094},
{-0.3515603,9.0527344},
{-7.972197700000001,13.4472656},
{-12.6403383,13.0078125},
{-18.729502000000004,11.6894531},
{-23.563987100000002,15.029296899999999},
{-30.069094,17.1386719},
{-33.3580616,18.1933594},
{-34.9579953,19.9511719},
{-34.1618182,24.3457031},
{-30.145127200000005,31.2011719},
{-25.244696,33.9257813},
{-23.32208,35.7714844},
{-19.3940679,34.6289063},
{-15.5383759,41.2207031},
{-5.6159858,38.4082031},
{2.5479879000000003,45.0},
{6.9264268,49.6582031},
{12.2970683,50.8886719},
{10.660608,44.0332031},
{14.9447849,40.78125},
{16.804541100000005,38.5839844},
{19.9733488,37.1777344},
{25.7207351,34.3652344},
{29.8406439,32.5195313},
{27.8390761,34.0136719},
{30.069094,35.4199219},
{27.9944014,34.7167969},
{22.9179229,38.9355469},
{20.1384703,39.9023438},
{17.1407904,42.3632813},
{14.434680200000003,42.7148438},
{12.5545635,44.3847656},
{16.551961700000003,53.1738281},
{18.729502000000004,57.7441406},
{22.4313402,59.765625},
{24.2870269,56.5136719},
{26.5885271,56.5136719},
{23.8054496,52.3828125},
{25.3241665,51.5917969},
{26.5099045,51.5917969},
{25.562265,50.1855469},
{29.688052700000004,47.9003906},
{30.5244133,49.7460938},
{28.9985318,51.0644531}
},{
{40.0444376,26.2792969},
{37.2303284,26.8945313},
{36.5272948,29.53125},
{36.5272948,35.5957031},
{33.6512083,35.5078125},
{30.977609099999995,33.8378906},
{31.8775576,31.1132813},
{31.052934,29.0917969},
{33.1375512,20.9179688},
{30.751277800000004,19.3359375},
{32.1756125,14.765625},
{33.5047591,10.9863281},
{37.1603165,10.8984375}
},{
{41.31082390000001,29.0917969},
{42.228517399999994,33.5742188},
{40.7139558,38.9355469},
{41.9676592,41.8359375},
{43.89789240000001,39.2871094},
{45.3367019,37.089843800000004},
{47.4578085,39.375},
{46.0732307,34.8046875},
{44.90257799999999,35.9472656},
{44.3395652,33.6621094},
{45.767523,32.5195313},
{46.4378569,33.3105469},
{46.5588603,31.113281299999993},
{44.087585,28.828125000000004},
{42.2285174,27.5976563}
},{
{59.8889369,-43.2421875},
{65.4034448,-39.90234180000001},
{66.1197322,-36.1319196},
{67.8755413,-32.5195293},
{68.8491434,-26.3042185},
{70.7289795,-21.093750000000004},
{72.5338026,-22.323573},
{76.2999534,-19.4677714},
{79.4323708,-22.5},
{81.6724242,-11.953125},
{83.6381057,-32.34375},
{82.3088925,-55.89843750000001},
{80.2086522,-67.1484355},
{79.1382604,-65.390623},
{78.4378226,-72.7734355},
{75.84516850000001,-68.203125},
{76.2507485,-61.9335627},
{75.1407778,-58.35937500000001},
{70.5479123,-52.3644583},
{66.5132604,-54.140625},
{60.5869673,-47.109375}
},{
{73.8248203,-86.3964844},
{72.9969091,-89.5605469},
{70.4662074,-88.3300781},
{70.0205873,-84.6386719},
{69.8396219,-79.8046875},
{70.0805622,-77.6953125},
{68.6245437,-74.7949219},
{67.3059757,-71.71875},
{66.0180182,-74.3554687},
{64.9607663,-74.7070312},
{64.7741253,-78.3105469},
{64.5106432,-77.43164060000001},
{64.1681069,-73.56445310000001},
{61.98026730000001,-65.6542969},
{63.6657603,-64.3359375},
{65.98227,-67.7636719},
{67.0674334,-67.2363281},
{65.1091482,-63.8964844},
{66.7572498,-61.3476562},
{69.0056752,-68.7304687},
{69.6876184,-66.62109370000002},
{71.9108879,-74.53125},
{73.4534728,-77.6074219},
{73.6772645,-83.4082031},
{72.9196355,-85.4296875},
{71.3289502,-84.9023437},
{72.6857649,-86.74804690000002}
},{
{69.0371417,-102.7441406},
{70.14036430000002,-100.6347656},
{71.2160753,-104.1503906},
{73.0482363,-105.38085940000002},
{73.3530549,-108.5449219},
{71.9653877,-107.6660156},
{73.0994131,-113.6425781},
{73.5781673,-115.57617190000002},
{74.2835635,-117.6855469},
{74.30735340000001,-120.6738281},
{74.5667362,-121.9921875},
{74.4021626,-125.4199219},
{72.1009436,-125.68359370000002},
{71.1593914,-122.6953125},
{71.5527407,-120.14648440000002},
{73.1504399,-117.86132810000001},
{72.47527630000002,-117.5097656},
{71.2160753,-118.828125},
{71.2725947,-116.45507810000001},
{70.6708811,-117.5097656},
{70.4367988,-112.4121094},
{69.990535,-117.33398439999999},
{69.3493386,-113.90625000000001},
{68.6245437,-112.6757812},
{68.9741636,-107.4023437},
{69.2561492,-104.5019531}
},{
{73.0738435,-102.9199219},
{71.3570665,-99.140625},
{71.8288396,-96.6796875},
{73.2013171,-96.7675781},
{73.3026242,-98.4375},
{74.1400839,-97.8222656},
{73.6277888,-101.6015625},
{72.7900883,-100.546875}
},{
{74.7064499,-80.15625000000001},
{82.425629,-61.52343750000001},
{83.0475289,-70.9277344},
{82.6986587,-83.0566406},
{81.2683848,-92.4609375},
{80.6327403,-86.3085937},
{80.4595089,-89.5605469},
{81.2416596,-94.21875},
{79.6556679,-96.9433594},
{78.0437951,-91.8457031},
{79.2207596,-104.4140625},
{77.7489463,-103.44726560000001},
{77.0591159,-106.4355469},
{78.5430435,-112.0605469},
{76.1639926,-121.640625},
{74.2597384,-112.9394531},
{75.1857893,-105.46875},
{74.5667362,-93.7792969},
{74.5433298,-85.78125}
},{
{-16.3833911,44.2089844},
{-17.3086879,43.857421900000006},
{-19.725342199999996,44.5166016},
{-21.8207079,43.0664063},
{-25.3241665,43.9013672},
{-25.490402044405393,45.0},
{-25.5226146,45.219726599999994},
{-24.886436500000002,46.977539099999994},
{-15.8768091,50.4931641},
{-12.0393206,49.3945313},
{-15.114552900000001,47.2851563},
{-16.062777445275007,45.0}
},{
{-2.4601812,31.772460899999995},
{-2.4162757,33.4863281},
{-0.17578100000000002,34.7167969},
{0.3955047,32.87109379999999},
{-0.8349314,31.5527344}
},{
{28.9985318,51.0644531},
{26.5099045,53.87695310000001},
{27.0982539,56.5136719},
{25.8394494,57.5683594},
{25.2844377,62.4462891},
{25.403585,66.6210938},
{23.1605633,68.3789063},
{22.9179229,70.0488281},
{22.4313402,68.9501953},
{20.6327843,70.6201172},
{21.2074587,72.421875},
{22.512557,72.5537109},
{20.7150151,73.0371094},
{18.4379247,72.7294922},
{10.7037917,75.8496094},
{7.536764300000001,77.2558594},
{8.4506388,78.3105469},
{10.9196178,79.8925781},
{15.665354200000001,80.3759766},
{17.8532901,84.02343750000001},
{21.4530686,87.3632813},
{22.0245456,89.2529297},
{22.2280904,91.9335938},
{19.5183755,93.515625},
{17.8951143,94.7021484},
{16.0880422,94.2626953},
{15.749962599999998,95.2294922},
{17.1827791,96.7675801}
},{
{9.4490618,79.9804688},
{7.6238869,79.6289063},
{5.8783321,79.9804688},
{6.2279339,81.4306641},
{7.3188817,82.0019531},
{9.7523701,80.0683594}
},{
{17.0987922,97.1191406},
{11.9103536,98.78906250000001},
{8.015716,98.2177734},
{6.9700494,99.7558594},
{3.7765593,100.7666016},
{2.0210651000000004,101.9970703},
{1.0546279,104.6777344},
{3.206333,103.44726560000001},
{5.1347146,103.2275391},
{6.8391696,101.7773438},
{7.2752923,100.7226563},
{9.5790843,99.7998047},
{9.5790843,99.2724609},
{11.3507967,99.5800781},
{13.6673383,100.2392578},
{12.2970683,101.953125},
{12.1252642,103.0078125},
{11.2215103,103.1396484},
{9.8389794,105.0292969},
{8.4506388,104.6337891},
{9.7523701,106.6552734},
{11.0921659,107.4023438},
{11.2646122,109.2919922},
{13.966054100000001,109.2919922},
{16.4255475,108.0175781},
{18.3545255,106.0400391},
{20.3034175,105.9521484},
{21.6574282,108.7207031},
{21.6982655,109.8193359},
{20.2621971,109.8193359},
{20.4270128,110.5664063},
{21.5757189,110.7861328},
{22.1059988,113.3789063},
{22.5531475,113.8623047},
{22.512557,114.3896484},
{22.9583933,116.4990234},
{26.273714,119.75097660000002},
{29.878755299999998,122.0800781},
{30.8267809,120.9375},
{30.977609099999995,122.12402340000001},
{33.6877818,120.4541016},
{34.5608594,120.01464839999998},
{34.8859309,118.9599609},
{36.350527,120.8056641},
{36.8444607,122.2558594},
{37.5445773,122.4755859},
{37.753344,120.4541016},
{36.9850031,119.48730470000001},
{37.2303284,118.9599609},
{37.9961627,118.9599609},
{38.6168705,117.33398439999999},
{39.2662844,117.5097656},
{39.436193,118.9599609},
{41.0130658,121.33300990000001},
{40.41349600000001,122.12402340000001},
{39.808536,121.3330078},
{38.822591,121.72851560000001},
{39.7409864,123.88183589999998},
{39.5040407,125.37597659999999},
{38.3416562,124.67285159999999},
{37.6142314,125.6396484},
{37.6838203,126.5625},
{36.9498918,126.5625},
{36.9147643,126.1669922},
{36.0313318,126.51855470000001},
{34.849875,126.2548828},
{34.1981731,126.2988281},
{35.1738083,129.1552734},
{36.5978891,129.7265625},
{38.959408800000006,128.4082031},
{39.5040407,127.35351559999998},
{40.3465441,127.6611328},
{40.97989810000001,129.8583984},
{42.0982224,129.8144531},
{43.0367759,131.8359375}
},{
{46.1646145,142.1630859},
{46.7398606,142.6904297},
{46.528634700000005,143.8330078},
{48.01932420000001,142.4707031},
{49.3537557,143.2177734},
{49.1817034,144.4921875},
{51.9984104,143.3056641},
{54.162434,142.7783203},
{53.3833284,141.7675781},
{51.9442649,141.67968750000003},
{50.875311100000005,141.8994141},
{48.5457055,141.8994141},
{47.1000447,141.7675781}
},{
{43.0046471,132.2314453},
{42.8115217,133.1982422},
{43.5166885,135.0878906},
{46.13417,137.6367188},
{48.8068635,140.1855469},
{51.3717804,140.6689453},
{52.2143386,141.4160156},
{53.3833284,141.2402344},
{54.21386100000001,139.7021484},
{54.2652241,138.6914063},
{53.4618904,137.3730469},
{54.9018822,135.1757813},
{59.243414800000004,142.6464844},
{59.489726,150.9082031},
{58.92733439999999,152.2265625},
{59.4227275,155.3466797},
{60.06484050000001,154.3359375},
{61.71070600000001,157.4121094},
{61.83541340000001,160.4003906},
{60.6085418,160.2685547},
{61.876870200000006,162.9931641},
{62.5123179,163.6083984},
{62.61356210000001,164.8388672},
{60.90907330000001,163.4765625},
{58.0313724,158.0712891},
{56.0474996,155.5224609},
{52.536273,156.1376953},
{49.9794878,156.796875},
{52.3755992,158.6425781},
{53.409531900000005,158.9501953},
{54.7753459,162.1142578},
{55.998381,161.9824219},
{56.6562265,162.9052734},
{58.1938713,162.9492188},
{58.1938713,162.0263672},
{60.1086705,164.0478516},
{60.500525399999994,166.2890625},
{60.08676270000001,170.2001953},
{62.369996300000004,176.1767578},
{62.431074200000005,178.94531250000003},
{62.9951585,179.9121094},
{64.3018221,178.3300781},
{64.7366414,177.2314453},
{64.7366414,179.73632810000004},
{65.6220226,-179.4726562},
{66.2137394,-179.5166016},
{66.2668563,-178.6376953},
{65.458261,-178.4619141},
{65.531171,-176.0009766},
{64.90491,-175.2099609},
{64.2254926,-173.3642578},
{65.3118293,-171.9140625},
{66.1427427,-169.62890620000002},
{67.0845505,-171.9140625},
{67.1187485,-174.375},
{66.6006757,-174.4628906},
{66.7572498,-175.1660156},
{67.8424165,-175.1220703},
{69.7333344,176.7919922},
{70.0955289,170.1123047},
{69.1312712,171.0791016},
{68.8000411,169.7607422},
{69.4112424,168.4423828},
{70.0205873,169.4970703},
{70.06558470000002,168.0029297},
{69.4421276,166.9042969},
{69.6723578,159.3017578},
{70.5395432,159.609375},
{71.1025427,155.7421875},
{70.9596972,152.2265625},
{71.6912927,149.50195310000004},
{72.5149309,145.2392578},
{72.5544985,140.4052734},
{71.6498329,139.2626953},
{71.3148767,132.0117188},
{70.9310035,130.9570313},
{71.6636629,129.2431641},
{73.0097551,129.5068359},
{73.7757799,123.2666016},
{72.7770813,123.48632809999998},
{73.8125738,110.3027344},
{73.2013171,105.6005859},
{73.565739,106.7871094},
{74.39034210000001,111.5332031},
{75.7156332,113.8623047},
{76.8707962,111.6650391},
{76.5679549,106.6992188},
{77.0295587,107.578125},
{77.0984225,104.2822266},
{77.4755619,106.6113281},
{77.6928703,103.4912109},
{76.8408164,100.8544922},
{76.4757725,100.6787109},
{75.8988014,94.7021484},
{74.5550373,86.4404297},
{73.7265947,86.5283203},
{73.4909774,80.2880859},
{72.1548896,81.5185547},
{71.7464317,83.1884766},
{71.510978,81.7822266},
{72.3957057,78.8818359},
{71.9108879,75.9375},
{71.2443555,78.3105469},
{71.2725947,74.8388672},
{72.0739115,75.1025391},
{71.7464317,73.7402344},
{71.2584802,73.4765625},
{69.19379980000001,73.828125},
{69.1156111,77.5195313},
{68.2042122,77.8271484},
{68.3668011,77.0800781},
{68.8476651,75.8935547},
{68.5924866,74.6191406},
{67.221053,73.828125},
{66.2668563,71.8505859},
{66.7572498,69.1699219},
{67.1358294,71.8505859},
{68.6885206,73.2128906},
{71.524909,72.0263672},
{72.6464859,72.9492188},
{73.5781673,70.6640625},
{72.9196355,69.4335938},
{72.2355137,68.4667969},
{70.8446726,66.8408203},
{69.5958901,67.0166016},
{68.7682351,68.8623047},
{68.318146,68.1591797},
{69.6418037,63.67675779999999},
{69.7333344,60.864257800000004},
{70.4515084,58.842773400000006},
{70.1999941,58.4472656},
{69.5191469,60.205078099999994},
{68.9110048,60.8203125},
{68.3343759,59.80957029999999},
{68.9110048,58.8867188},
{68.2693868,54.7119141},
{68.318146,53.1298828},
{68.9268115,54.3603516},
{68.2693868,50.3613281},
{67.692771,47.9882813},
{66.9472744,47.6367188},
{66.9644763,45.4833984},
{67.2380616,45.0},
{67.7427591,45.6591797},
{67.8589848,46.6699219},
{68.544315,45.7470703},
{68.6245437,43.4619141},
{67.0331628,43.8134766},
{66.0715465,44.0771484},
{66.4957405,42.2753906},
{65.9285538,40.9130859},
{65.3668369,39.8144531},
{64.6427038,39.9902344},
{64.7553899,37.8369141},
{65.127638,37.1777344},
{64.6991054,36.4306641},
{64.3018221,37.8808594},
{63.76306520000001,37.5732422},
{63.9566733,37.0458984}
},{
{37.27238450986453,49.55547719575145},
{36.5272948,51.1962891},
{36.9147643,53.745117199999996},
{38.822591,53.78906249999999},
{38.886132869214634,53.755246888468015},
{40.747257,52.73437499999999},
{40.946713700000004,54.7119141},
{42.6501218,53.2617188},
{41.8368279,52.6025391},
{43.0367759,52.03125},
{44.9647979,49.9658203},
{45.6447682,53.21777339999999},
{46.8301336,52.6464844},
{46.589069099999996,49.965820300000004},
{45.21300360000001,47.5048828},
{44.4337798,46.7138672},
{40.31304320000001,50.0537109},
{38.7883454,48.779296900000006},
{37.4399741,49.1748047}
},{
{38.1345566,15.1171875},
{38.06539240000001,12.3486328},
{37.1603165,13.007812499999998},
{36.70365960000001,15.1611328}
},{
{40.747257,8.041992199999997},
{38.754083300000005,8.6572266},
{39.43619300000001,9.843750000000002},
{41.277806500000004,9.272460900000002}
},{
{41.277806500000004,9.272460900000002},
{43.0367759,9.4921875},
{42.58544429999999,8.6572266},
{41.6400784,8.5253906}
},{
{35.1378791,32.3876953},
{34.849875,32.563476599999994},
{34.849875000000004,33.7060547},
{35.78217070000001,34.5849609}
},{
{21.9634249,-84.3530273},
{22.6140109,-82.6611328},
{22.5531475,-81.7602539},
{22.3297523,-82.0898437},
{22.187405,-81.4306641},
{21.453068599999998,-78.6401367},
{20.653346099999997,-78.1567383},
{20.653346099999997,-77.0361328},
{20.5093546,-77.1020508},
{19.8700598,-77.7172852},
{19.7873802,-75.3662109},
{20.200346,-74.1357422},
{20.879343,-75.6738281},
{21.084500100000003,-75.7836914},
{22.451648799999997,-78.7719727},
{22.4922572,-79.4091797},
{22.958393299999997,-80.2880859},
{23.160563300000003,-82.1777344},
{22.8369459,-83.7597656},
{22.268764000000004,-84.3310547}
},{
{19.5804935,-73.4545898},
{19.3318784,-72.7294922},
{18.8127179,-72.7294922},
{18.6254245,-73.1689453},
{18.625424500000005,-74.53125},
{18.083200899999998,-74.2675781},
{18.0623123,-73.2788086},
{17.9996316,-71.8286133},
{17.727758600000005,-71.4770508},
{18.396230100000004,-70.7519531},
{18.1876066,-70.0048828},
{18.4170787,-68.5766582},
{18.646245199999996,-68.4228495},
{19.082884400000005,-69.2797852},
{19.5183755,-69.6313477},
{19.8700598,-70.6640625},
{19.8080541,-71.71875},
{19.9733488,-72.7075195}
},{
{18.5421167,-67.2363281},
{18.1249706,-67.2143555},
{17.916022699999996,-65.76416020000002},
{18.4170787,-65.7202148}
},{
{18.396230100000004,-78.4423828},
{17.811456100000004,-77.4975586},
{17.8532901,-76.2890625},
{18.1876066,-76.2670898},
{18.437924699999996,-77.80517580000001}
},{
{24.507143300000003,-78.4204102},
{23.5639871,-77.5854492},
{23.8255513,-77.5195312},
{25.363882299999997,-78.0688477}
},{
{65.5675497,-24.5214844},
{65.4765076,-22.4560547},
{65.1830301,-22.412109399999995},
{64.7366414,-23.9501953},
{64.7741253,-22.3242187},
{64.1297837,-21.577148400000002},
{63.743631,-22.6757812},
{63.743631,-20.7421875},
{63.33241279999999,-18.632812500000004},
{64.0721996,-16.6552734},
{64.5295482,-13.930664099999998},
{65.4765076,-13.5351562},
{66.6355558,-16.3916016},
{66.178266,-18.2373047},
{65.9285538,-20.6103516},
{65.3668369,-21.5332031},
{65.8207823,-21.5771484},
{66.4606635,-22.939453099999998}
},{
{65.619901,-86.3212882},
{63.3530646,-87.1977908},
{62.9169919,-85.0032093},
{63.9764625,-83.4239489},
{63.5889507,-81.7559862},
{64.20694,-80.87876740000002}
},{
{51.5087425,-56.25},
{47.5765257,-59.5019531},
{47.15984,-55.28320310000001},
{46.316584199999994,-52.8222656},
{47.931066300000005,-52.6464844},
{49.439557,-54.4921875},
{49.9512199,-56.5136719}
},{
{22.8369459,119.8388672},
{21.8207079,121.0693359},
{25.403585,122.0800781},
{25.403585,121.0693359},
{23.684774200000003,119.9267578}
},{
{19.601194199999995,108.6328125},
{18.729502000000004,108.5888672},
{18.271086100000005,109.2919922},
{18.771115100000003,110.5224609},
{19.9320413,110.9179688},
{20.1384703,110.43457030000002}
},{
{5.441022300000001,94.9658203},
{1.6257583999999998,98.78906250000001},
{-0.5273363,99.5361328},
{-4.1272853,102.2167969},
{-5.878332100000001,104.765625},
{-5.659718599999999,106.12792970000001},
{-2.8991526999999997,106.171875},
{-0.6591651000000001,103.7548828},
{0.3515603,103.5791016},
{1.8893060000000002,101.42578130000001},
{5.3535214,97.5146484}
},{
{-6.708254000000001,105.2929688},
{-7.7109917,108.28125},
{-8.5810212,114.4775391},
{-7.7109917,114.3896484},
{-6.970049399999999,113.6425781},
{-6.402648400000001,110.8740234},
{-6.9700494,110.3466797},
{-5.703448,106.6552734}
},{
{-8.2767271,116.0595703},
{-8.928487100000002,115.8398438},
{-8.7982255,118.87207029999999},
{-8.8850717,121.90429689999999},
{-8.146242800000001,123.8378906},
{-8.4071682,121.28906250000001},
{-8.1897423,119.0917969}
},{
{-10.53102,123.2666016},
{-8.5810212,127.30957030000002},
{-8.9718973,124.3212891}
},{
{2.0210651000000004,108.984375},
{-1.1425024,109.1162109},
{-2.2406396,110.3466797},
{-3.0746951,111.5332031},
{-4.0396178,115.2246094},
{-2.7235831,116.7626953},
{0.7909905,118.125},
{3.7327083,117.4658203},
{4.696879,118.828125},
{7.013667900000001,116.9824219},
{4.0396178,113.51074220000001},
{2.5479879000000003,111.1816406},
{1.4939713000000001,110.83007810000001}
},{
{18.6462451,120.5859415},
{15.876809100000003,120.27832030000002},
{15.8768091,119.53125},
{13.5392007,120.7617188},
{12.1682257,120.14648440000002},
{11.7813253,121.94824219999998},
{10.3581514,121.94824219999998},
{10.098670100000001,123.5302734},
{8.7113589,123.3984375},
{7.6674415,122.12402340000001},
{6.358975299999999,122.12402340000001},
{6.9264268,123.6621094},
{6.4463177,124.4091797},
{6.0531613,126.1230469},
{8.7547947,126.91406250000001},
{11.0921659,125.3320313},
{12.7689464,125.4199219},
{13.5392007,123.48632809999998},
{15.114552900000001,123.0029297},
{15.0296858,121.7724609},
{16.804541100000005,121.7724609},
{17.6021391,122.4755859}
},{
{2.1088987000000006,124.4970703},
{1.0546278999999998,123.0029297},
{1.1864386000000002,120.4541016},
{-0.8349314,119.53125},
{-3.337954,118.9160156},
{-4.1272853,119.48730470000001},
{-5.2222465,119.48730470000001},
{-5.7908968,120.32226560000001},
{-5.6159858,120.9375},
{-2.8991526999999997,120.14648440000002},
{-3.206333,121.8603516},
{-4.915832799999999,122.2998047},
{-4.5654736,123.5302734},
{-1.7575368000000002,121.68457030000002},
{-0.8349314,123.1347656},
{-0.9667510000000002,120.6738281},
{0.0,120.4101563},
{0.6152226,121.02539060000001},
{0.39550469999999993,123.8378906},
{1.3182431,125.2441406}
},{
{-0.966751,130.4736328},
{-2.1088987000000006,131.4404297},
{-2.2845507,133.85742190000002},
{-2.3723687,132.1875},
{-4.0834528,133.1982422},
{-3.7327083,133.59375},
{-4.138101302745221,135.0},
{-4.7406754,137.109375},
{-6.6209573,138.515625},
{-7.1444988,138.2519531},
{-8.4071682,137.6367188},
{-8.233237099999998,138.8232422},
{-9.058702199999999,140.4492188},
{-9.058702199999999,143.0859375},
{-7.885147300000002,143.9648438},
{-8.2332371,145.7226563},
{-9.968850600000001,147.4365234},
{-9.7090571,150.468754},
{-8.6244721,148.2714844},
{-6.8391696,146.953125},
{-6.358975300000001,147.6123047},
{-5.1784821,146.3818359},
{-3.9519409,144.2285156},
{-1.4061088,137.5048828},
{-3.2502086000000006,135.1318359},
{-3.142546926009692,135.0},
{-2.8552628,134.6484375},
{-0.7031074,133.6376953}
},{
{70.772443,57.172851599999994},
{71.8972381,55.3271484},
{73.4784851,56.7773438},
{75.2530566,61.1279297},
{75.9415642,66.0498047},
{76.5372962,68.6425781},
{77.009817,67.7197266},
{76.6797849,65.5664063},
{76.0585079,60.3808594},
{75.0390128,56.0742188},
{73.252045,53.3935547},
{72.2086783,51.8115234},
{71.0597978,52.3388672},
{70.6999513,55.502929699999996}
}};
// iterate through each line and each coordinate in each line and draw the shapes
// r + standoff indicates that the continents are drawn slightly above the surface of the globe
for (float[][] shp : world_coords) {
pushMatrix();
beginShape();
for (float[] coord : shp){
float[] xyz = coord_to_xyz(coord[0], coord[1], r + standoff);
vertex(xyz[0], xyz[1], xyz[2]);
}
endShape();
popMatrix();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment