mirror of
				https://github.com/jhasse/poly2tri.git
				synced 2025-11-03 21:59:32 +01:00 
			
		
		
		
	checked in c++ code
This commit is contained in:
		
							
								
								
									
										60
									
								
								testbed/data/2.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								testbed/data/2.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,60 @@
 | 
			
		||||
2158.9981,2350.2286
 | 
			
		||||
2158.9981,3245.4557
 | 
			
		||||
-1042.9463,3245.4557
 | 
			
		||||
-1042.9463,2496.1895
 | 
			
		||||
91.149593,800.20639
 | 
			
		||||
441.75649,251.73749
 | 
			
		||||
648.06929,-97.04991
 | 
			
		||||
765.46219,-332.30851
 | 
			
		||||
849.31479,-540.20071
 | 
			
		||||
899.62689,-720.72671
 | 
			
		||||
916.39869,-873.88651
 | 
			
		||||
896.13819,-1060.7944
 | 
			
		||||
835.35969,-1193.3788
 | 
			
		||||
789.54889,-1239.4959
 | 
			
		||||
733.15879,-1272.4376
 | 
			
		||||
666.18939,-1292.204
 | 
			
		||||
588.64059,-1298.7951
 | 
			
		||||
511.08979,-1291.4964
 | 
			
		||||
444.11959,-1269.6012
 | 
			
		||||
387.73029,-1233.1107
 | 
			
		||||
341.92169,-1182.0263
 | 
			
		||||
306.46619,-1109.2461
 | 
			
		||||
281.14119,-1007.6808
 | 
			
		||||
260.88259,-718.19491
 | 
			
		||||
260.88259,-218.68401
 | 
			
		||||
-1042.9463,-218.68401
 | 
			
		||||
-1042.9463,-410.05511
 | 
			
		||||
-1030.3404,-804.55201
 | 
			
		||||
-992.52205,-1105.8022
 | 
			
		||||
-958.08057,-1232.6032
 | 
			
		||||
-905.18018,-1358.3923
 | 
			
		||||
-833.82067,-1483.1695
 | 
			
		||||
-744.00213,-1606.9348
 | 
			
		||||
-637.5262,-1722.6871
 | 
			
		||||
-516.1928,-1823.4397
 | 
			
		||||
-380.00205,-1909.1927
 | 
			
		||||
-228.95374,-1979.9461
 | 
			
		||||
-62.599167,-2035.2866
 | 
			
		||||
119.51329,-2074.8167
 | 
			
		||||
317.38399,-2098.5364
 | 
			
		||||
531.01279,-2106.4456
 | 
			
		||||
938.57049,-2082.2155
 | 
			
		||||
1122.512,-2051.9328
 | 
			
		||||
1293.2285,-2009.5383
 | 
			
		||||
1450.7202,-1955.0316
 | 
			
		||||
1594.987,-1888.4129
 | 
			
		||||
1726.0289,-1809.6817
 | 
			
		||||
1843.846,-1718.8382
 | 
			
		||||
2038.4505,-1512.159
 | 
			
		||||
2177.4543,-1279.7356
 | 
			
		||||
2260.8578,-1021.5681
 | 
			
		||||
2288.6606,-737.65631
 | 
			
		||||
2273.0151,-508.98211
 | 
			
		||||
2226.0792,-273.82221
 | 
			
		||||
2147.8538,-32.17651
 | 
			
		||||
2038.3398,215.95519
 | 
			
		||||
1852.2859,537.88159
 | 
			
		||||
1544.4495,1000.9025
 | 
			
		||||
1114.8304,1605.018
 | 
			
		||||
563.42839,2350.2286
 | 
			
		||||
							
								
								
									
										275
									
								
								testbed/data/bird.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										275
									
								
								testbed/data/bird.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,275 @@
 | 
			
		||||
4.57998 4.03402
 | 
			
		||||
4.06435 4.06435
 | 
			
		||||
3.51839 4.21601
 | 
			
		||||
3.09376 4.42832
 | 
			
		||||
2.60846 4.57998
 | 
			
		||||
2.09284 4.7013
 | 
			
		||||
1.51655 4.82263
 | 
			
		||||
0.909929 4.94395
 | 
			
		||||
0.242648 5.06527
 | 
			
		||||
-0.30331 5.0956
 | 
			
		||||
-1.15258 5.12594
 | 
			
		||||
-1.72887 5.12594
 | 
			
		||||
-2.48714 5.12594
 | 
			
		||||
-2.85111 5.03494
 | 
			
		||||
-3.36674 5.30792
 | 
			
		||||
-3.70038 5.52024
 | 
			
		||||
-4.15534 5.9752
 | 
			
		||||
-4.7013 6.27851
 | 
			
		||||
-5.0956 6.61215
 | 
			
		||||
-5.73255 6.67281
 | 
			
		||||
-6.55149 6.73348
 | 
			
		||||
-6.88513 6.61215
 | 
			
		||||
-7.46142 6.36951
 | 
			
		||||
-7.88605 6.18752
 | 
			
		||||
-8.25003 5.91454
 | 
			
		||||
-8.64433 5.61123
 | 
			
		||||
-8.88698 5.30792
 | 
			
		||||
-9.06896 5.00461
 | 
			
		||||
-9.25095 4.88329
 | 
			
		||||
-9.94856 4.73163
 | 
			
		||||
-10.6462 4.64064
 | 
			
		||||
-11.1011 4.54965
 | 
			
		||||
-11.3741 4.42832
 | 
			
		||||
-11.5561 4.21601
 | 
			
		||||
-11.0101 4.21601
 | 
			
		||||
-10.1305 3.94303
 | 
			
		||||
-9.61492 3.73071
 | 
			
		||||
-9.15996 3.4274
 | 
			
		||||
-8.73532 3.00277
 | 
			
		||||
-8.34102 2.6388
 | 
			
		||||
-7.97705 2.36582
 | 
			
		||||
-7.61308 2.03218
 | 
			
		||||
-7.18844 1.45589
 | 
			
		||||
-6.79414 1.12225
 | 
			
		||||
-6.64248 0.788605
 | 
			
		||||
-6.36951 0.242648
 | 
			
		||||
-6.24818 -0.212317
 | 
			
		||||
-6.00553 -0.515627
 | 
			
		||||
-5.73255 -0.818936
 | 
			
		||||
-5.24726 -1.2739
 | 
			
		||||
-4.7923 -1.60754
 | 
			
		||||
-4.42832 -2.00184
 | 
			
		||||
-3.67005 -2.21416
 | 
			
		||||
-3.18475 -2.39615
 | 
			
		||||
-2.5478 -2.69946
 | 
			
		||||
-1.91085 -2.79045
 | 
			
		||||
-1.06158 -2.88144
 | 
			
		||||
-0.333641 -2.88144
 | 
			
		||||
0.242648 -2.85111
 | 
			
		||||
0.94026 -2.82078
 | 
			
		||||
1.2739 -2.85111
 | 
			
		||||
1.42556 -3.0331
 | 
			
		||||
1.42556 -3.30608
 | 
			
		||||
1.33456 -3.57905
 | 
			
		||||
1.15258 -4.00369
 | 
			
		||||
1.03125 -4.57998
 | 
			
		||||
0.849267 -5.15627
 | 
			
		||||
0.63695 -5.5809
 | 
			
		||||
0.30331 -5.91454
 | 
			
		||||
0.060662 -6.15719
 | 
			
		||||
-0.333641 -6.27851
 | 
			
		||||
-0.697612 -6.27851
 | 
			
		||||
-1.15258 -6.36951
 | 
			
		||||
-1.57721 -6.39984
 | 
			
		||||
-2.09284 -6.52116
 | 
			
		||||
-2.36582 -6.79414
 | 
			
		||||
-2.48714 -7.06712
 | 
			
		||||
-2.18383 -6.97612
 | 
			
		||||
-1.85019 -6.79414
 | 
			
		||||
-1.42556 -6.76381
 | 
			
		||||
-1.15258 -6.79414
 | 
			
		||||
-1.36489 -6.88513
 | 
			
		||||
-1.69853 -6.97612
 | 
			
		||||
-1.97151 -7.12778
 | 
			
		||||
-2.12317 -7.37043
 | 
			
		||||
-2.27482 -7.64341
 | 
			
		||||
-2.39615 -7.91639
 | 
			
		||||
-2.36582 -8.21969
 | 
			
		||||
-2.03218 -7.85572
 | 
			
		||||
-1.81986 -7.7344
 | 
			
		||||
-1.57721 -7.67374
 | 
			
		||||
-1.36489 -7.49175
 | 
			
		||||
-1.21324 -7.40076
 | 
			
		||||
-0.849267 -7.2491
 | 
			
		||||
-0.60662 -7.12778
 | 
			
		||||
-0.242648 -6.91546
 | 
			
		||||
0.030331 -6.70315
 | 
			
		||||
0.363972 -6.4605
 | 
			
		||||
0.242648 -6.61215
 | 
			
		||||
0.152837 -6.72007
 | 
			
		||||
-0.092855 -6.88818
 | 
			
		||||
-0.506653 -7.15974
 | 
			
		||||
-0.765276 -7.31491
 | 
			
		||||
-1.01097 -7.41836
 | 
			
		||||
-1.16614 -7.5606
 | 
			
		||||
-1.32132 -7.71577
 | 
			
		||||
-1.45063 -7.81922
 | 
			
		||||
-1.50235 -8.06492
 | 
			
		||||
-1.50235 -8.29768
 | 
			
		||||
-1.46356 -8.53044
 | 
			
		||||
-1.38597 -8.29768
 | 
			
		||||
-1.28252 -8.05199
 | 
			
		||||
-1.14028 -7.87095
 | 
			
		||||
-0.985106 -7.84509
 | 
			
		||||
-0.817001 -7.84509
 | 
			
		||||
-0.623033 -7.70284
 | 
			
		||||
-0.390272 -7.52181
 | 
			
		||||
-0.105787 -7.31491
 | 
			
		||||
0.178699 -7.06922
 | 
			
		||||
0.489047 -6.84939
 | 
			
		||||
0.670083 -6.66835
 | 
			
		||||
0.928707 -6.47438
 | 
			
		||||
1.16147 -6.33214
 | 
			
		||||
1.47182 -6.13817
 | 
			
		||||
1.82096 -5.91834
 | 
			
		||||
2.04079 -5.84076
 | 
			
		||||
2.15717 -5.71144
 | 
			
		||||
2.18303 -5.45282
 | 
			
		||||
2.06665 -5.28472
 | 
			
		||||
1.87268 -5.3623
 | 
			
		||||
1.49768 -5.63386
 | 
			
		||||
1.22612 -5.81489
 | 
			
		||||
1.03216 -5.91834
 | 
			
		||||
0.876982 -5.95714
 | 
			
		||||
0.954569 -5.80196
 | 
			
		||||
1.00629 -5.60799
 | 
			
		||||
1.16147 -5.29765
 | 
			
		||||
1.3425 -4.9873
 | 
			
		||||
1.45888 -4.65109
 | 
			
		||||
1.47182 -4.4054
 | 
			
		||||
1.73044 -3.95281
 | 
			
		||||
1.84682 -3.6166
 | 
			
		||||
1.98906 -3.30625
 | 
			
		||||
2.14424 -2.95711
 | 
			
		||||
2.26062 -2.75021
 | 
			
		||||
2.42872 -2.59503
 | 
			
		||||
2.63562 -2.50452
 | 
			
		||||
2.98476 -2.51745
 | 
			
		||||
3.12701 -2.71141
 | 
			
		||||
3.06235 -3.09935
 | 
			
		||||
2.9589 -3.4097
 | 
			
		||||
2.86838 -3.75884
 | 
			
		||||
2.79079 -4.12091
 | 
			
		||||
2.70028 -4.43126
 | 
			
		||||
2.55803 -4.75454
 | 
			
		||||
2.48045 -5.03902
 | 
			
		||||
2.3382 -5.37523
 | 
			
		||||
2.29941 -5.59506
 | 
			
		||||
2.23475 -5.90541
 | 
			
		||||
2.11837 -6.21576
 | 
			
		||||
1.7951 -6.65542
 | 
			
		||||
1.39423 -7.05628
 | 
			
		||||
1.09681 -7.26318
 | 
			
		||||
0.838188 -7.37956
 | 
			
		||||
0.41146 -7.49594
 | 
			
		||||
-0.002337 -7.62526
 | 
			
		||||
-0.416135 -7.7675
 | 
			
		||||
-0.687689 -8.05199
 | 
			
		||||
-0.907519 -8.40113
 | 
			
		||||
-0.70062 -8.19423
 | 
			
		||||
-0.312685 -8.05199
 | 
			
		||||
-0.015268 -7.89681
 | 
			
		||||
0.217493 -7.89681
 | 
			
		||||
0.243355 -7.90974
 | 
			
		||||
0.023525 -8.1425
 | 
			
		||||
-0.157511 -8.25888
 | 
			
		||||
-0.403203 -8.43992
 | 
			
		||||
-0.648896 -8.75027
 | 
			
		||||
-0.778207 -8.90544
 | 
			
		||||
-0.881657 -9.18993
 | 
			
		||||
-0.80407 -9.60372
 | 
			
		||||
-0.597171 -9.177
 | 
			
		||||
-0.14458 -8.9701
 | 
			
		||||
0.269217 -8.62096
 | 
			
		||||
0.695946 -8.28475
 | 
			
		||||
1.13561 -8.00026
 | 
			
		||||
1.52354 -7.62526
 | 
			
		||||
1.82096 -7.26318
 | 
			
		||||
1.95027 -7.09508
 | 
			
		||||
1.9632 -7.15974
 | 
			
		||||
1.66578 -7.58646
 | 
			
		||||
1.45888 -7.84509
 | 
			
		||||
1.13561 -8.20716
 | 
			
		||||
0.760601 -8.65975
 | 
			
		||||
0.450253 -8.99596
 | 
			
		||||
0.269217 -9.28045
 | 
			
		||||
0.126974 -9.65545
 | 
			
		||||
0.19163 -10.2761
 | 
			
		||||
0.333873 -9.84942
 | 
			
		||||
0.63129 -9.68131
 | 
			
		||||
0.980431 -9.26751
 | 
			
		||||
1.26492 -8.72441
 | 
			
		||||
1.60113 -8.31061
 | 
			
		||||
1.98906 -7.7675
 | 
			
		||||
2.36407 -7.34077
 | 
			
		||||
2.79079 -7.00456
 | 
			
		||||
3.13994 -6.7718
 | 
			
		||||
3.68304 -6.46145
 | 
			
		||||
4.14857 -6.33214
 | 
			
		||||
4.7434 -6.09938
 | 
			
		||||
5.19599 -6.13817
 | 
			
		||||
4.85978 -5.87955
 | 
			
		||||
4.29081 -5.76317
 | 
			
		||||
3.77356 -5.81489
 | 
			
		||||
3.34683 -6.07352
 | 
			
		||||
2.77786 -6.47438
 | 
			
		||||
2.41579 -6.60369
 | 
			
		||||
2.41579 -6.28042
 | 
			
		||||
2.59683 -5.84076
 | 
			
		||||
2.79079 -5.42696
 | 
			
		||||
2.99769 -4.90971
 | 
			
		||||
3.25632 -4.30195
 | 
			
		||||
3.50201 -3.52608
 | 
			
		||||
3.83822 -2.63383
 | 
			
		||||
4.07098 -2.40107
 | 
			
		||||
4.39426 -2.28469
 | 
			
		||||
4.79512 -2.23296
 | 
			
		||||
4.54943 -2.02606
 | 
			
		||||
4.49771 -1.6252
 | 
			
		||||
4.54943 -1.50882
 | 
			
		||||
4.91151 -1.50882
 | 
			
		||||
5.54513 -1.45709
 | 
			
		||||
6.12704 -1.39244
 | 
			
		||||
6.85118 -1.32778
 | 
			
		||||
7.44601 -1.14674
 | 
			
		||||
7.85981 -0.78467
 | 
			
		||||
7.79516 -0.409667
 | 
			
		||||
7.49774 -0.151043
 | 
			
		||||
7.84688 0.042924
 | 
			
		||||
8.23481 0.314479
 | 
			
		||||
8.64861 0.702414
 | 
			
		||||
8.70034 1.09035
 | 
			
		||||
8.41585 1.42656
 | 
			
		||||
8.11843 1.62053
 | 
			
		||||
8.3512 2.06019
 | 
			
		||||
8.53223 2.38347
 | 
			
		||||
8.67447 2.74554
 | 
			
		||||
8.66154 3.22399
 | 
			
		||||
8.80379 3.87055
 | 
			
		||||
8.90724 4.36193
 | 
			
		||||
9.1012 4.85332
 | 
			
		||||
9.43741 5.40936
 | 
			
		||||
9.90293 6.04298
 | 
			
		||||
10.3167 6.58609
 | 
			
		||||
10.7047 7.3749
 | 
			
		||||
10.9374 7.96973
 | 
			
		||||
11.1573 8.40939
 | 
			
		||||
11.1573 8.84905
 | 
			
		||||
10.9374 9.05595
 | 
			
		||||
10.6659 9.28871
 | 
			
		||||
10.3426 9.37922
 | 
			
		||||
9.99345 9.34043
 | 
			
		||||
9.63138 8.97836
 | 
			
		||||
9.20465 8.48697
 | 
			
		||||
8.86844 8.1249
 | 
			
		||||
8.50637 7.72404
 | 
			
		||||
8.17016 7.28438
 | 
			
		||||
7.74343 6.88351
 | 
			
		||||
7.43308 6.5473
 | 
			
		||||
7.16153 6.1723
 | 
			
		||||
6.70894 5.71971
 | 
			
		||||
6.20462 5.25418
 | 
			
		||||
5.72617 4.80159
 | 
			
		||||
5.13134 4.41366
 | 
			
		||||
4.87271 4.16797
 | 
			
		||||
							
								
								
									
										7
									
								
								testbed/data/custom.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								testbed/data/custom.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
0 130 
 | 
			
		||||
-270 0 
 | 
			
		||||
130 -40 
 | 
			
		||||
10 -60 
 | 
			
		||||
-10 -20 
 | 
			
		||||
100 30 
 | 
			
		||||
40 -40
 | 
			
		||||
							
								
								
									
										200
									
								
								testbed/data/debug.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										200
									
								
								testbed/data/debug.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,200 @@
 | 
			
		||||
1.2277408 0.0
 | 
			
		||||
1.3243141 0.041618247
 | 
			
		||||
1.0635862 0.06691518
 | 
			
		||||
0.952708 0.09005742
 | 
			
		||||
0.9624486 0.12158553
 | 
			
		||||
1.3459457 0.21317686
 | 
			
		||||
0.94439876 0.1801537
 | 
			
		||||
0.58555007 0.13088594
 | 
			
		||||
0.5811499 0.14921393
 | 
			
		||||
0.82454175 0.23955151
 | 
			
		||||
0.62284756 0.20237544
 | 
			
		||||
0.56452847 0.20324275
 | 
			
		||||
0.5578659 0.22087473
 | 
			
		||||
0.6222525 0.2692727
 | 
			
		||||
0.5428962 0.25546756
 | 
			
		||||
0.6560448 0.33427152
 | 
			
		||||
0.525784 0.28905222
 | 
			
		||||
0.71199375 0.42107195
 | 
			
		||||
0.8918749 0.56600106
 | 
			
		||||
0.93826324 0.63764304
 | 
			
		||||
0.5041431 0.36628145
 | 
			
		||||
0.74085724 0.57466775
 | 
			
		||||
0.55901116 0.46245426
 | 
			
		||||
0.45006666 0.3967871
 | 
			
		||||
0.43738118 0.41072828
 | 
			
		||||
0.42426407 0.42426407
 | 
			
		||||
0.41072828 0.43738118
 | 
			
		||||
0.3967871 0.45006666
 | 
			
		||||
0.41002733 0.4956379
 | 
			
		||||
0.7536917 0.9716534
 | 
			
		||||
1.0196112 1.4033744
 | 
			
		||||
0.66767913 0.98246
 | 
			
		||||
0.7202045 1.1348608
 | 
			
		||||
0.44231245 0.7479095
 | 
			
		||||
0.28905222 0.525784
 | 
			
		||||
0.2723943 0.5346039
 | 
			
		||||
0.5011288 1.0649529
 | 
			
		||||
0.27308202 0.6310553
 | 
			
		||||
0.22087473 0.5578659
 | 
			
		||||
0.20460863 0.56832236
 | 
			
		||||
0.3397839 1.0457473
 | 
			
		||||
0.26354295 0.9071208
 | 
			
		||||
0.2884009 1.1232473
 | 
			
		||||
0.15593462 0.69761133
 | 
			
		||||
0.16937841 0.88791275
 | 
			
		||||
0.21818724 1.37758
 | 
			
		||||
0.1523747 1.20617
 | 
			
		||||
0.11806885 1.249038
 | 
			
		||||
0.06135568 0.97522056
 | 
			
		||||
0.018846456 0.5997039
 | 
			
		||||
6.8178847E-17 1.113445
 | 
			
		||||
-0.028901286 0.91965383
 | 
			
		||||
-0.06209223 0.98692775
 | 
			
		||||
-0.05646499 0.5973372
 | 
			
		||||
-0.10701424 0.84710497
 | 
			
		||||
-0.09386068 0.592613
 | 
			
		||||
-0.1636339 0.8577989
 | 
			
		||||
-0.29984477 1.3414284
 | 
			
		||||
-0.45487383 1.7716166
 | 
			
		||||
-0.6387838 2.1987083
 | 
			
		||||
-0.6129905 1.8865908
 | 
			
		||||
-0.8446652 2.3461478
 | 
			
		||||
-0.9281012 2.344116
 | 
			
		||||
-1.0037318 2.3194876
 | 
			
		||||
-1.0196298 2.1668236
 | 
			
		||||
-0.8902802 1.7472732
 | 
			
		||||
-1.2330354 2.242883
 | 
			
		||||
-1.4297054 2.4174998
 | 
			
		||||
-1.6074804 2.5329838
 | 
			
		||||
-1.4688258 2.1613116
 | 
			
		||||
-1.7633557 2.427051
 | 
			
		||||
-1.6571896 2.136436
 | 
			
		||||
-1.912272 2.3115396
 | 
			
		||||
-1.6086806 1.82469
 | 
			
		||||
-1.6045313 1.7086523
 | 
			
		||||
-2.0598311 2.0598311
 | 
			
		||||
-1.8296968 1.7181997
 | 
			
		||||
-2.2503333 1.9839356
 | 
			
		||||
-2.1353924 1.7665502
 | 
			
		||||
-2.370465 1.8387212
 | 
			
		||||
-2.427051 1.7633557
 | 
			
		||||
-2.4812417 1.6862501
 | 
			
		||||
-2.5329838 1.6074804
 | 
			
		||||
-2.5773842 1.5242608
 | 
			
		||||
-2.62892 1.445261
 | 
			
		||||
-2.6730196 1.3619715
 | 
			
		||||
-2.714481 1.2773379
 | 
			
		||||
-2.753264 1.1914437
 | 
			
		||||
-2.7893295 1.1043737
 | 
			
		||||
-2.8226423 1.0162138
 | 
			
		||||
-2.8531694 0.927051
 | 
			
		||||
-2.5261154 0.73390436
 | 
			
		||||
-2.6257684 0.6741827
 | 
			
		||||
-2.9277503 0.65442973
 | 
			
		||||
-2.8118498 0.53638905
 | 
			
		||||
-2.963065 0.4693034
 | 
			
		||||
-2.976344 0.3759997
 | 
			
		||||
-2.617039 0.24738303
 | 
			
		||||
-2.99408 0.18837155
 | 
			
		||||
-2.860681 0.08990052
 | 
			
		||||
-3.0 3.6739403E-16
 | 
			
		||||
-2.6968896 -0.08475317
 | 
			
		||||
-2.99408 -0.18837155
 | 
			
		||||
-2.431072 -0.22980396
 | 
			
		||||
-2.4993353 -0.31573948
 | 
			
		||||
-2.3772683 -0.3765223
 | 
			
		||||
-2.523671 -0.48141596
 | 
			
		||||
-2.4523084 -0.54815584
 | 
			
		||||
-1.9428126 -0.49882948
 | 
			
		||||
-1.980212 -0.57530475
 | 
			
		||||
-1.6508379 -0.53638977
 | 
			
		||||
-1.7593161 -0.63339275
 | 
			
		||||
-1.1899233 -0.47112396
 | 
			
		||||
-0.8138197 -0.35217124
 | 
			
		||||
-0.5630522 -0.26495224
 | 
			
		||||
-0.5346039 -0.2723943
 | 
			
		||||
-0.878033 -0.4827027
 | 
			
		||||
-0.85542375 -0.5058962
 | 
			
		||||
-1.2059882 -0.76534337
 | 
			
		||||
-0.97923774 -0.66548926
 | 
			
		||||
-1.0108875 -0.7344528
 | 
			
		||||
-0.7830176 -0.6073707
 | 
			
		||||
-0.90356225 -0.74749166
 | 
			
		||||
-1.0288435 -0.90704757
 | 
			
		||||
-1.1261301 -1.0575066
 | 
			
		||||
-0.9001703 -0.9001703
 | 
			
		||||
-0.8477716 -0.902785
 | 
			
		||||
-0.5851195 -0.66368777
 | 
			
		||||
-0.47532755 -0.5745723
 | 
			
		||||
-0.6310177 -0.8135031
 | 
			
		||||
-0.40265256 -0.5542037
 | 
			
		||||
-0.33725002 -0.49624833
 | 
			
		||||
-0.32149607 -0.50659674
 | 
			
		||||
-0.46425027 -0.7850044
 | 
			
		||||
-0.38156003 -0.69405514
 | 
			
		||||
-0.2723943 -0.5346039
 | 
			
		||||
-0.25546756 -0.5428962
 | 
			
		||||
-0.23828873 -0.5506528
 | 
			
		||||
-0.22087473 -0.5578659
 | 
			
		||||
-0.20324275 -0.56452847
 | 
			
		||||
-0.20844458 -0.64152646
 | 
			
		||||
-0.16739467 -0.5761762
 | 
			
		||||
-0.14921393 -0.5811499
 | 
			
		||||
-0.13088594 -0.58555007
 | 
			
		||||
-0.14249685 -0.7469947
 | 
			
		||||
-0.11622784 -0.73383373
 | 
			
		||||
-0.081517614 -0.64527833
 | 
			
		||||
-0.07004014 -0.7409472
 | 
			
		||||
-0.05557717 -0.88337386
 | 
			
		||||
-0.025127873 -0.7995819
 | 
			
		||||
-1.1021821E-16 -0.6
 | 
			
		||||
0.029305225 -0.9325074
 | 
			
		||||
0.05083992 -0.8080774
 | 
			
		||||
0.10585039 -1.1197802
 | 
			
		||||
0.18259653 -1.4454004
 | 
			
		||||
0.21030101 -1.3277884
 | 
			
		||||
0.17551 -0.9200556
 | 
			
		||||
0.17963327 -0.8036331
 | 
			
		||||
0.14921393 -0.5811499
 | 
			
		||||
0.26661414 -0.9176919
 | 
			
		||||
0.1854102 -0.5706339
 | 
			
		||||
0.24760589 -0.6877518
 | 
			
		||||
0.251998 -0.6364744
 | 
			
		||||
0.23828873 -0.5506528
 | 
			
		||||
0.4822611 -1.024857
 | 
			
		||||
0.479923 -0.9419019
 | 
			
		||||
0.34421936 -0.62613267
 | 
			
		||||
0.55215293 -0.9336396
 | 
			
		||||
0.70164776 -1.1056199
 | 
			
		||||
0.9243659 -1.3601631
 | 
			
		||||
1.1842307 -1.6299537
 | 
			
		||||
1.4756334 -1.9023752
 | 
			
		||||
1.6572317 -2.003249
 | 
			
		||||
1.669321 -1.893473
 | 
			
		||||
1.8840985 -2.0063612
 | 
			
		||||
2.1213202 -2.1213202
 | 
			
		||||
2.1869059 -2.0536413
 | 
			
		||||
2.2503333 -1.9839356
 | 
			
		||||
2.3115396 -1.912272
 | 
			
		||||
2.2131321 -1.7166812
 | 
			
		||||
2.3906639 -1.7369189
 | 
			
		||||
2.0770426 -1.4115567
 | 
			
		||||
2.2302797 -1.4153785
 | 
			
		||||
2.4940982 -1.4750056
 | 
			
		||||
2.62892 -1.445261
 | 
			
		||||
2.23299 -1.1377653
 | 
			
		||||
2.5385184 -1.1945361
 | 
			
		||||
2.4313858 -1.0521545
 | 
			
		||||
2.686942 -1.0638356
 | 
			
		||||
2.8226423 -1.0162138
 | 
			
		||||
2.6503394 -0.86114746
 | 
			
		||||
2.6646125 -0.77414155
 | 
			
		||||
2.1942327 -0.56338316
 | 
			
		||||
1.7811928 -0.39814374
 | 
			
		||||
1.9936028 -0.38030007
 | 
			
		||||
1.5980223 -0.2531019
 | 
			
		||||
1.77933 -0.22478165
 | 
			
		||||
1.192731 -0.112746276
 | 
			
		||||
1.358207 -0.08545114
 | 
			
		||||
1.7209803 -0.054083984
 | 
			
		||||
							
								
								
									
										10000
									
								
								testbed/data/debug2.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10000
									
								
								testbed/data/debug2.dat
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										10
									
								
								testbed/data/diamond.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								testbed/data/diamond.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
0.0 0.0
 | 
			
		||||
2.0 1.0
 | 
			
		||||
4.0 2.0
 | 
			
		||||
6.0 3.0
 | 
			
		||||
8.0 4.0
 | 
			
		||||
1.0  5.0
 | 
			
		||||
-8.0 4.0
 | 
			
		||||
-6.0 3.0
 | 
			
		||||
-4.0 2.0
 | 
			
		||||
-2.0 1.0
 | 
			
		||||
							
								
								
									
										94
									
								
								testbed/data/dude.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										94
									
								
								testbed/data/dude.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,94 @@
 | 
			
		||||
280.35714 648.79075
 | 
			
		||||
286.78571 662.8979
 | 
			
		||||
263.28607 661.17871
 | 
			
		||||
262.31092 671.41548
 | 
			
		||||
250.53571 677.00504
 | 
			
		||||
250.53571 683.43361
 | 
			
		||||
256.42857 685.21933
 | 
			
		||||
297.14286 669.50504
 | 
			
		||||
289.28571 649.50504
 | 
			
		||||
285 631.6479
 | 
			
		||||
285 608.79075
 | 
			
		||||
292.85714 585.21932
 | 
			
		||||
306.42857 563.79075
 | 
			
		||||
323.57143 548.79075
 | 
			
		||||
339.28571 545.21932
 | 
			
		||||
357.85714 547.36218
 | 
			
		||||
375 550.21932
 | 
			
		||||
391.42857 568.07647
 | 
			
		||||
404.28571 588.79075
 | 
			
		||||
413.57143 612.36218
 | 
			
		||||
417.14286 628.07647
 | 
			
		||||
438.57143 619.1479
 | 
			
		||||
438.03572 618.96932
 | 
			
		||||
437.5 609.50504
 | 
			
		||||
426.96429 609.86218
 | 
			
		||||
424.64286 615.57647
 | 
			
		||||
419.82143 615.04075
 | 
			
		||||
420.35714 605.04075
 | 
			
		||||
428.39286 598.43361
 | 
			
		||||
437.85714 599.68361
 | 
			
		||||
443.57143 613.79075
 | 
			
		||||
450.71429 610.21933
 | 
			
		||||
431.42857 575.21932
 | 
			
		||||
405.71429 550.21932
 | 
			
		||||
372.85714 534.50504
 | 
			
		||||
349.28571 531.6479
 | 
			
		||||
346.42857 521.6479
 | 
			
		||||
346.42857 511.6479
 | 
			
		||||
350.71429 496.6479
 | 
			
		||||
367.85714 476.6479
 | 
			
		||||
377.14286 460.93361
 | 
			
		||||
385.71429 445.21932
 | 
			
		||||
388.57143 404.50504
 | 
			
		||||
360 352.36218
 | 
			
		||||
337.14286 325.93361
 | 
			
		||||
330.71429 334.50504
 | 
			
		||||
347.14286 354.50504
 | 
			
		||||
337.85714 370.21932
 | 
			
		||||
333.57143 359.50504
 | 
			
		||||
319.28571 353.07647
 | 
			
		||||
312.85714 366.6479
 | 
			
		||||
350.71429 387.36218
 | 
			
		||||
368.57143 408.07647
 | 
			
		||||
375.71429 431.6479
 | 
			
		||||
372.14286 454.50504
 | 
			
		||||
366.42857 462.36218
 | 
			
		||||
352.85714 462.36218
 | 
			
		||||
336.42857 456.6479
 | 
			
		||||
332.85714 438.79075
 | 
			
		||||
338.57143 423.79075
 | 
			
		||||
338.57143 411.6479
 | 
			
		||||
327.85714 405.93361
 | 
			
		||||
320.71429 407.36218
 | 
			
		||||
315.71429 423.07647
 | 
			
		||||
314.28571 440.21932
 | 
			
		||||
325 447.71932
 | 
			
		||||
324.82143 460.93361
 | 
			
		||||
317.85714 470.57647
 | 
			
		||||
304.28571 483.79075
 | 
			
		||||
287.14286 491.29075
 | 
			
		||||
263.03571 498.61218
 | 
			
		||||
251.60714 503.07647
 | 
			
		||||
251.25 533.61218
 | 
			
		||||
260.71429 533.61218
 | 
			
		||||
272.85714 528.43361
 | 
			
		||||
286.07143 518.61218
 | 
			
		||||
297.32143 508.25504
 | 
			
		||||
297.85714 507.36218
 | 
			
		||||
298.39286 506.46932
 | 
			
		||||
307.14286 496.6479
 | 
			
		||||
312.67857 491.6479
 | 
			
		||||
317.32143 503.07647
 | 
			
		||||
322.5 514.1479
 | 
			
		||||
325.53571 521.11218
 | 
			
		||||
327.14286 525.75504
 | 
			
		||||
326.96429 535.04075
 | 
			
		||||
311.78571 540.04075
 | 
			
		||||
291.07143 552.71932
 | 
			
		||||
274.82143 568.43361
 | 
			
		||||
259.10714 592.8979
 | 
			
		||||
254.28571 604.50504
 | 
			
		||||
251.07143 621.11218
 | 
			
		||||
250.53571 649.1479
 | 
			
		||||
268.1955 654.36208
 | 
			
		||||
							
								
								
									
										100
									
								
								testbed/data/funny.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										100
									
								
								testbed/data/funny.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,100 @@
 | 
			
		||||
100.317505 0.0
 | 
			
		||||
146.29202 9.203914
 | 
			
		||||
129.52948 16.363379
 | 
			
		||||
95.36635 18.192104
 | 
			
		||||
88.769775 22.792204
 | 
			
		||||
102.68762 33.36523
 | 
			
		||||
142.4203 56.388184
 | 
			
		||||
132.23712 62.22607
 | 
			
		||||
134.04555 73.69216
 | 
			
		||||
121.24752 76.946014
 | 
			
		||||
140.18803 101.85256
 | 
			
		||||
124.024445 102.601944
 | 
			
		||||
119.727 112.43114
 | 
			
		||||
144.82764 154.22577
 | 
			
		||||
155.76044 188.28203
 | 
			
		||||
146.94632 202.25424
 | 
			
		||||
133.9567 211.08199
 | 
			
		||||
120.438416 219.07668
 | 
			
		||||
103.53854 220.03061
 | 
			
		||||
90.72225 229.13826
 | 
			
		||||
77.25425 237.76413
 | 
			
		||||
54.851055 213.63075
 | 
			
		||||
46.84533 245.57181
 | 
			
		||||
31.33331 248.02867
 | 
			
		||||
15.69763 249.50668
 | 
			
		||||
1.5308084E-14 250.0
 | 
			
		||||
-13.490268 214.42166
 | 
			
		||||
-29.863472 236.39372
 | 
			
		||||
-44.794296 234.81993
 | 
			
		||||
-50.172047 195.40721
 | 
			
		||||
-69.351425 213.44174
 | 
			
		||||
-75.72414 191.25734
 | 
			
		||||
-96.03964 204.09464
 | 
			
		||||
-120.438416 219.07668
 | 
			
		||||
-127.11785 200.30568
 | 
			
		||||
-119.31813 164.22733
 | 
			
		||||
-130.35721 157.57478
 | 
			
		||||
-112.00853 119.27697
 | 
			
		||||
-142.68515 133.99026
 | 
			
		||||
-117.65654 97.333954
 | 
			
		||||
-125.62218 91.26986
 | 
			
		||||
-114.24053 72.499245
 | 
			
		||||
-160.95981 88.4884
 | 
			
		||||
-138.49583 65.171196
 | 
			
		||||
-102.99021 40.776707
 | 
			
		||||
-141.48434 45.97105
 | 
			
		||||
-97.90232 25.137043
 | 
			
		||||
-116.9116 22.30208
 | 
			
		||||
-145.58727 18.391949
 | 
			
		||||
-183.83247 11.565759
 | 
			
		||||
-190.12851 2.3284026E-14
 | 
			
		||||
-157.68095 -9.9204445
 | 
			
		||||
-186.18002 -23.520008
 | 
			
		||||
-160.72182 -30.659325
 | 
			
		||||
-143.63857 -36.880116
 | 
			
		||||
-143.12222 -46.50323
 | 
			
		||||
-98.59685 -39.037254
 | 
			
		||||
-86.89141 -40.887993
 | 
			
		||||
-83.81993 -46.0804
 | 
			
		||||
-42.216396 -26.79134
 | 
			
		||||
-40.45085 -29.389263
 | 
			
		||||
-38.52566 -31.871199
 | 
			
		||||
-46.53258 -43.697002
 | 
			
		||||
-34.227356 -36.448433
 | 
			
		||||
-38.017994 -45.95586
 | 
			
		||||
-29.389263 -40.45085
 | 
			
		||||
-26.79134 -42.216396
 | 
			
		||||
-31.430187 -57.1713
 | 
			
		||||
-22.040213 -46.837833
 | 
			
		||||
-27.75829 -70.109436
 | 
			
		||||
-26.90105 -82.79292
 | 
			
		||||
-13.713537 -53.4107
 | 
			
		||||
-10.41509 -54.59781
 | 
			
		||||
-6.2666616 -49.605736
 | 
			
		||||
-3.139526 -49.901337
 | 
			
		||||
-9.184851E-15 -50.0
 | 
			
		||||
3.5057213 -55.721844
 | 
			
		||||
6.2666616 -49.605736
 | 
			
		||||
14.274147 -74.8277
 | 
			
		||||
19.75647 -76.946365
 | 
			
		||||
24.69724 -76.01029
 | 
			
		||||
24.807446 -62.656456
 | 
			
		||||
28.282286 -60.102917
 | 
			
		||||
37.102608 -67.489395
 | 
			
		||||
51.878616 -81.74762
 | 
			
		||||
46.092445 -63.440807
 | 
			
		||||
34.334026 -41.502712
 | 
			
		||||
34.227356 -36.448433
 | 
			
		||||
43.65427 -40.99409
 | 
			
		||||
38.52566 -31.871199
 | 
			
		||||
40.45085 -29.389263
 | 
			
		||||
42.216396 -26.79134
 | 
			
		||||
52.668476 -28.95474
 | 
			
		||||
86.38597 -40.650154
 | 
			
		||||
126.91717 -50.25006
 | 
			
		||||
83.21832 -27.039272
 | 
			
		||||
109.77473 -28.185358
 | 
			
		||||
105.45997 -20.117565
 | 
			
		||||
119.66038 -15.116621
 | 
			
		||||
74.30321 -4.674762
 | 
			
		||||
							
								
								
									
										1036
									
								
								testbed/data/nazca_heron.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1036
									
								
								testbed/data/nazca_heron.dat
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1204
									
								
								testbed/data/nazca_monkey.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1204
									
								
								testbed/data/nazca_monkey.dat
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										82
									
								
								testbed/data/polygon.dae
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										82
									
								
								testbed/data/polygon.dae
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,82 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
 | 
			
		||||
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
 | 
			
		||||
    <asset>
 | 
			
		||||
        <contributor>
 | 
			
		||||
            <authoring_tool>Google SketchUp 7.1.4871</authoring_tool>
 | 
			
		||||
        </contributor>
 | 
			
		||||
        <created>2009-12-21T01:51:00Z</created>
 | 
			
		||||
        <modified>2009-12-21T01:51:00Z</modified>
 | 
			
		||||
        <unit meter="0.0254" name="inch" />
 | 
			
		||||
        <up_axis>Z_UP</up_axis>
 | 
			
		||||
    </asset>
 | 
			
		||||
    <library_visual_scenes>
 | 
			
		||||
        <visual_scene id="ID1">
 | 
			
		||||
            <node name="SketchUp">
 | 
			
		||||
                <instance_geometry url="#ID2">
 | 
			
		||||
                    <bind_material>
 | 
			
		||||
                        <technique_common>
 | 
			
		||||
                            <instance_material symbol="Material2" target="#ID4">
 | 
			
		||||
                                <bind_vertex_input semantic="UVSET0" input_semantic="TEXCOORD" input_set="0" />
 | 
			
		||||
                            </instance_material>
 | 
			
		||||
                        </technique_common>
 | 
			
		||||
                    </bind_material>
 | 
			
		||||
                </instance_geometry>
 | 
			
		||||
            </node>
 | 
			
		||||
        </visual_scene>
 | 
			
		||||
    </library_visual_scenes>
 | 
			
		||||
    <library_geometries>
 | 
			
		||||
        <geometry id="ID2">
 | 
			
		||||
            <mesh>
 | 
			
		||||
                <source id="ID5">
 | 
			
		||||
                    <float_array id="ID8" count="324">-112.9393 -5.134218 -5.952325e-030 -115.783 -26.39329 -4.065249e-030 -116.1693 -15.52189 -5.174618e-030 -111.8239 -36.52552 -2.74901e-030 -106.4564 3.601217 -6.310887e-030 -104.7373 -44.7788 -1.373963e-030 -66.76277 70.05491 -5.637993e-014 -68.21937 53.83701 -4.127297e-014 -68.55863 62.04185 -5.054886e-014 -65.7681 45.99956 -2.91844e-014 -62.95416 77.33014 -5.83688e-014 -61.37187 39.0636 -1.510696e-014 -57.39237 83.37173 -5.637993e-014 -55.33028 33.5018 0 -50.4564 87.76796 -5.054886e-014 -54.18848 31.40854 0 -52.54381 29.68213 0 -50.50835 28.44022 0 -48.22082 27.76744 0 -42.61895 90.21923 -4.127297e-014 -45.8371 27.70964 0 -43.51965 28.27076 0 -41.4264 29.41256 0 -34.41412 90.55849 -2.91844e-014 -38.42946 47.11159 0 -39.69999 31.05723 0 -38.45807 33.09269 0 -36.86605 53.9672 0 -33.69118 60.24126 0 -26.40105 88.76263 -1.510696e-014 -29.09332 65.56134 0 -23.3454 69.61164 0 -19.12582 84.95402 1.877284e-029 -16.7886 72.15173 0 -13.74167 81.56284 1.269697e-029 -9.81216 73.03084 0 -8.03964 78.73864 7.636926e-030 -2.830188 72.19677 0 -2.079244 76.51087 3.64551e-030 3.742859 69.69904 0 4.077324 74.9028 7.643719e-031 9.516804 65.68592 0 10.36582 73.93119 -9.764253e-031 14.1489 60.39562 0 16.72063 73.60619 -1.558716e-030 17.36419 54.14218 0 23.07544 73.93119 -9.764253e-031 19.14039 41.22425 0 92.15467 80.62257 -5.238305e-014 88.83104 50.24595 2.085226e-030 88.0531 85.73196 -5.423092e-014 92.70476 55.53018 -1.403599e-014 94.79408 74.62572 -4.696535e-014 95.07883 61.63694 -2.711546e-014 95.79146 68.15007 -3.834705e-014 -138.3173 50.47565 -5.441105e-014 -137.432 24.73624 -3.697808e-014 -140.3168 37.52194 -4.746962e-014 -131.7115 61.79639 -5.68373e-014 -130.0639 13.89615 -2.439509e-014 -121.4177 69.91023 -5.441105e-014 -119.2369 6.508783 -1.147007e-014 -108.8671 73.6891 -4.746962e-014 -95.8047 72.60761 -3.697808e-014 -95.3204 -50.22474 -9.478654e-032 -84.0465 66.81613 -2.439509e-014 -84.63247 -52.25073 9.446271e-031 -73.87579 -50.62886 1.627355e-030 -75.22729 57.11985 -1.147007e-014 -70.57319 44.86685 0 -64.26037 -45.54158 1.876598e-030 -69.61521 31.86262 0 -64.96236 19.68153 0 -57.00677 9.350201 0 -56.86785 -37.56115 1.664318e-030 -51.7342 -16.73615 -6.04464e-035 -46.41893 1.739326 0 -52.52979 -27.58529 1.014396e-030 -43.24859 -39.15101 -3.163366e-031 -34.09116 -2.50966 0 -28.50562 -58.04747 -5.308165e-031 -21.06243 -3.038659 0 -8.827904 -71.73027 -6.242584e-031 -8.430764 0.1969107 0 14.01921 -78.97189 -5.882796e-031 2.739249 6.924362 0 11.50623 16.57672 0 17.1313 28.34049 0 37.98603 -79.12265 -4.261077e-031 29.36394 74.9028 7.643719e-031 35.52051 76.51087 3.64551e-030 41.48091 78.73864 7.636926e-030 60.92244 -72.16905 -1.522917e-031 47.18293 81.56284 1.269697e-029 52.56709 84.95402 1.877284e-029 57.67648 89.0556 -1.403599e-014 63.67333 91.69501 -2.711546e-014 80.77074 -58.7349 2.086037e-031 70.14898 92.69238 -3.834705e-014 76.66211 91.97975 -4.696535e-014 82.76887 89.60568 -5.238305e-014 95.75028 -40.02542 6.242015e-031 100.8951 29.53631 1.822036e-030 104.5172 -17.71909 1.057217e-030 106.285 6.182927 1.468804e-030 -38.28861 40.08139 0 -37.78529 35.38022 0 -37.72749 37.76394 0</float_array>
 | 
			
		||||
                    <technique_common>
 | 
			
		||||
                        <accessor count="108" source="#ID8" stride="3">
 | 
			
		||||
                            <param name="X" type="float" />
 | 
			
		||||
                            <param name="Y" type="float" />
 | 
			
		||||
                            <param name="Z" type="float" />
 | 
			
		||||
                        </accessor>
 | 
			
		||||
                    </technique_common>
 | 
			
		||||
                </source>
 | 
			
		||||
                <source id="ID6">
 | 
			
		||||
                    <float_array id="ID9" count="324">5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1 5.652422e-017 -2.025185e-016 -1</float_array>
 | 
			
		||||
                    <technique_common>
 | 
			
		||||
                        <accessor count="108" source="#ID9" stride="3">
 | 
			
		||||
                            <param name="X" type="float" />
 | 
			
		||||
                            <param name="Y" type="float" />
 | 
			
		||||
                            <param name="Z" type="float" />
 | 
			
		||||
                        </accessor>
 | 
			
		||||
                    </technique_common>
 | 
			
		||||
                </source>
 | 
			
		||||
                <vertices id="ID7">
 | 
			
		||||
                    <input semantic="POSITION" source="#ID5" />
 | 
			
		||||
                    <input semantic="NORMAL" source="#ID6" />
 | 
			
		||||
                </vertices>
 | 
			
		||||
                <triangles count="106" material="Material2">
 | 
			
		||||
                    <input offset="0" semantic="VERTEX" source="#ID7" />
 | 
			
		||||
                    <p>0 1 2 1 0 3 3 0 4 3 4 5 6 7 8 7 6 9 9 6 10 9 10 11 11 10 12 11 12 13 13 12 14 13 14 15 15 14 16 16 14 17 17 14 18 18 14 19 18 19 20 20 19 21 21 19 22 22 19 23 22 23 24 22 24 25 25 24 26 24 23 27 27 23 28 28 23 29 28 29 30 30 29 31 31 29 32 31 32 33 33 32 34 33 34 35 35 34 36 35 36 37 37 36 38 37 38 39 39 38 40 39 40 41 41 40 42 41 42 43 43 42 44 43 44 45 45 44 46 45 46 47 48 49 50 49 48 51 51 48 52 51 52 53 53 52 54 55 56 57 56 55 58 56 58 59 59 58 60 59 60 61 61 60 62 61 62 4 4 62 63 4 63 5 5 63 64 64 63 65 64 65 66 66 65 67 67 65 68 67 68 69 67 69 70 70 69 71 70 71 72 70 72 73 70 73 74 74 73 75 75 73 76 74 75 77 75 76 78 78 76 79 78 79 80 80 79 81 80 81 82 82 81 83 82 83 84 84 83 85 84 85 86 84 86 87 84 87 88 88 87 47 88 47 46 88 46 89 88 89 90 88 90 91 88 91 92 92 91 93 92 93 94 92 94 95 92 95 96 92 96 97 97 96 98 97 98 99 97 99 100 97 100 101 101 100 49 49 100 50 101 49 102 101 102 103 103 102 104 26 105 106 105 26 24 106 105 107</p>
 | 
			
		||||
                </triangles>
 | 
			
		||||
            </mesh>
 | 
			
		||||
        </geometry>
 | 
			
		||||
    </library_geometries>
 | 
			
		||||
    <library_materials>
 | 
			
		||||
        <material id="ID4" name="material_0">
 | 
			
		||||
            <instance_effect url="#ID3" />
 | 
			
		||||
        </material>
 | 
			
		||||
    </library_materials>
 | 
			
		||||
    <library_effects>
 | 
			
		||||
        <effect id="ID3">
 | 
			
		||||
            <profile_COMMON>
 | 
			
		||||
                <technique sid="COMMON">
 | 
			
		||||
                    <lambert>
 | 
			
		||||
                        <diffuse>
 | 
			
		||||
                            <color>1 1 1 1</color>
 | 
			
		||||
                        </diffuse>
 | 
			
		||||
                    </lambert>
 | 
			
		||||
                </technique>
 | 
			
		||||
            </profile_COMMON>
 | 
			
		||||
        </effect>
 | 
			
		||||
    </library_effects>
 | 
			
		||||
    <scene>
 | 
			
		||||
        <instance_visual_scene url="#ID1" />
 | 
			
		||||
    </scene>
 | 
			
		||||
</COLLADA>
 | 
			
		||||
							
								
								
									
										319
									
								
								testbed/data/sketchup.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										319
									
								
								testbed/data/sketchup.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,319 @@
 | 
			
		||||
-112.9393 -5.134218
 | 
			
		||||
-115.783 -26.39329
 | 
			
		||||
-116.1693 -15.52189
 | 
			
		||||
-115.783 -26.39329
 | 
			
		||||
-112.9393 -5.134218
 | 
			
		||||
-111.8239 -36.52552
 | 
			
		||||
-111.8239 -36.52552
 | 
			
		||||
-112.9393 -5.134218
 | 
			
		||||
-106.4564 3.601217
 | 
			
		||||
-111.8239 -36.52552
 | 
			
		||||
-106.4564 3.601217
 | 
			
		||||
-104.7373 -44.7788
 | 
			
		||||
-66.76277 70.05491
 | 
			
		||||
-68.21937 53.83701
 | 
			
		||||
-68.55863 62.04185
 | 
			
		||||
-68.21937 53.83701
 | 
			
		||||
-66.76277 70.05491
 | 
			
		||||
-65.7681 45.99956
 | 
			
		||||
-65.7681 45.99956
 | 
			
		||||
-66.76277 70.05491
 | 
			
		||||
-62.95416 77.33014
 | 
			
		||||
-65.7681 45.99956
 | 
			
		||||
-62.95416 77.33014
 | 
			
		||||
-61.37187 39.0636
 | 
			
		||||
-61.37187 39.0636
 | 
			
		||||
-62.95416 77.33014
 | 
			
		||||
-57.39237 83.37173
 | 
			
		||||
-61.37187 39.0636
 | 
			
		||||
-57.39237 83.37173
 | 
			
		||||
-55.33028 33.5018
 | 
			
		||||
-55.33028 33.5018
 | 
			
		||||
-57.39237 83.37173
 | 
			
		||||
-50.4564 87.76796
 | 
			
		||||
-55.33028 33.5018
 | 
			
		||||
-50.4564 87.76796
 | 
			
		||||
-54.18848 31.40854
 | 
			
		||||
-54.18848 31.40854
 | 
			
		||||
-50.4564 87.76796
 | 
			
		||||
-52.54381 29.68213
 | 
			
		||||
-52.54381 29.68213
 | 
			
		||||
-50.4564 87.76796
 | 
			
		||||
-50.50835 28.44022
 | 
			
		||||
-50.50835 28.44022
 | 
			
		||||
-50.4564 87.76796
 | 
			
		||||
-48.22082 27.76744
 | 
			
		||||
-48.22082 27.76744
 | 
			
		||||
-50.4564 87.76796
 | 
			
		||||
-42.61895 90.21923
 | 
			
		||||
-48.22082 27.76744
 | 
			
		||||
-42.61895 90.21923
 | 
			
		||||
-45.8371 27.70964
 | 
			
		||||
-45.8371 27.70964
 | 
			
		||||
-42.61895 90.21923
 | 
			
		||||
-43.51965 28.27076
 | 
			
		||||
-43.51965 28.27076
 | 
			
		||||
-42.61895 90.21923
 | 
			
		||||
-41.4264 29.41256
 | 
			
		||||
-41.4264 29.41256
 | 
			
		||||
-42.61895 90.21923
 | 
			
		||||
-34.41412 90.55849
 | 
			
		||||
-41.4264 29.41256
 | 
			
		||||
-34.41412 90.55849
 | 
			
		||||
-38.42946 47.11159
 | 
			
		||||
-41.4264 29.41256
 | 
			
		||||
-38.42946 47.11159
 | 
			
		||||
-39.69999 31.05723
 | 
			
		||||
-39.69999 31.05723
 | 
			
		||||
-38.42946 47.11159
 | 
			
		||||
-38.45807 33.09269
 | 
			
		||||
-38.42946 47.11159
 | 
			
		||||
-34.41412 90.55849
 | 
			
		||||
-36.86605 53.9672
 | 
			
		||||
-36.86605 53.9672
 | 
			
		||||
-34.41412 90.55849
 | 
			
		||||
-33.69118 60.24126
 | 
			
		||||
-33.69118 60.24126
 | 
			
		||||
-34.41412 90.55849
 | 
			
		||||
-26.40105 88.76263
 | 
			
		||||
-33.69118 60.24126
 | 
			
		||||
-26.40105 88.76263
 | 
			
		||||
-29.09332 65.56134
 | 
			
		||||
-29.09332 65.56134
 | 
			
		||||
-26.40105 88.76263
 | 
			
		||||
-23.3454 69.61164
 | 
			
		||||
-23.3454 69.61164
 | 
			
		||||
-26.40105 88.76263
 | 
			
		||||
-19.12582 84.95402
 | 
			
		||||
-23.3454 69.61164
 | 
			
		||||
-19.12582 84.95402
 | 
			
		||||
-16.7886 72.15173
 | 
			
		||||
-16.7886 72.15173
 | 
			
		||||
-19.12582 84.95402
 | 
			
		||||
-13.74167 81.56284
 | 
			
		||||
-16.7886 72.15173
 | 
			
		||||
-13.74167 81.56284
 | 
			
		||||
-9.81216 73.03084
 | 
			
		||||
-9.81216 73.03084
 | 
			
		||||
-13.74167 81.56284
 | 
			
		||||
-8.03964 78.73864
 | 
			
		||||
-9.81216 73.03084
 | 
			
		||||
-8.03964 78.73864
 | 
			
		||||
-2.830188 72.19677
 | 
			
		||||
-2.830188 72.19677
 | 
			
		||||
-8.03964 78.73864
 | 
			
		||||
-2.079244 76.51087
 | 
			
		||||
-2.830188 72.19677
 | 
			
		||||
-2.079244 76.51087
 | 
			
		||||
3.742859 69.69904
 | 
			
		||||
3.742859 69.69904
 | 
			
		||||
-2.079244 76.51087
 | 
			
		||||
4.077324 74.9028
 | 
			
		||||
3.742859 69.69904
 | 
			
		||||
4.077324 74.9028
 | 
			
		||||
9.516804 65.68592
 | 
			
		||||
9.516804 65.68592
 | 
			
		||||
4.077324 74.9028
 | 
			
		||||
10.36582 73.93119
 | 
			
		||||
9.516804 65.68592
 | 
			
		||||
10.36582 73.93119
 | 
			
		||||
14.1489 60.39562
 | 
			
		||||
14.1489 60.39562
 | 
			
		||||
10.36582 73.93119
 | 
			
		||||
16.72063 73.60619
 | 
			
		||||
14.1489 60.39562
 | 
			
		||||
16.72063 73.60619
 | 
			
		||||
17.36419 54.14218
 | 
			
		||||
17.36419 54.14218
 | 
			
		||||
16.72063 73.60619
 | 
			
		||||
23.07544 73.93119
 | 
			
		||||
17.36419 54.14218
 | 
			
		||||
23.07544 73.93119
 | 
			
		||||
19.14039 41.22425
 | 
			
		||||
92.15467 80.62257
 | 
			
		||||
88.83104 50.24595
 | 
			
		||||
88.0531 85.73196
 | 
			
		||||
88.83104 50.24595
 | 
			
		||||
92.15467 80.62257
 | 
			
		||||
92.70476 55.53018
 | 
			
		||||
92.70476 55.53018
 | 
			
		||||
92.15467 80.62257
 | 
			
		||||
94.79408 74.62572
 | 
			
		||||
92.70476 55.53018
 | 
			
		||||
94.79408 74.62572
 | 
			
		||||
95.07883 61.63694
 | 
			
		||||
95.07883 61.63694
 | 
			
		||||
94.79408 74.62572
 | 
			
		||||
95.79146 68.15007
 | 
			
		||||
-138.3173 50.47565
 | 
			
		||||
-137.432 24.73624
 | 
			
		||||
-140.3168 37.52194
 | 
			
		||||
-137.432 24.73624
 | 
			
		||||
-138.3173 50.47565
 | 
			
		||||
-131.7115 61.79639
 | 
			
		||||
-137.432 24.73624
 | 
			
		||||
-131.7115 61.79639
 | 
			
		||||
-130.0639 13.89615
 | 
			
		||||
-130.0639 13.89615
 | 
			
		||||
-131.7115 61.79639
 | 
			
		||||
-121.4177 69.91023
 | 
			
		||||
-130.0639 13.89615
 | 
			
		||||
-121.4177 69.91023
 | 
			
		||||
-119.2369 6.508783
 | 
			
		||||
-119.2369 6.508783
 | 
			
		||||
-121.4177 69.91023
 | 
			
		||||
-108.8671 73.6891
 | 
			
		||||
-119.2369 6.508783
 | 
			
		||||
-108.8671 73.6891
 | 
			
		||||
-106.4564 3.601217
 | 
			
		||||
-106.4564 3.601217
 | 
			
		||||
-108.8671 73.6891
 | 
			
		||||
-95.8047 72.60761
 | 
			
		||||
-106.4564 3.601217
 | 
			
		||||
-95.8047 72.60761
 | 
			
		||||
-104.7373 -44.7788
 | 
			
		||||
-104.7373 -44.7788
 | 
			
		||||
-95.8047 72.60761
 | 
			
		||||
-95.3204 -50.22474
 | 
			
		||||
-95.3204 -50.22474
 | 
			
		||||
-95.8047 72.60761
 | 
			
		||||
-84.0465 66.81613
 | 
			
		||||
-95.3204 -50.22474
 | 
			
		||||
-84.0465 66.81613
 | 
			
		||||
-84.63247 -52.25073
 | 
			
		||||
-84.63247 -52.25073
 | 
			
		||||
-84.0465 66.81613
 | 
			
		||||
-73.87579 -50.62886
 | 
			
		||||
-73.87579 -50.62886
 | 
			
		||||
-84.0465 66.81613
 | 
			
		||||
-75.22729 57.11985
 | 
			
		||||
-73.87579 -50.62886
 | 
			
		||||
-75.22729 57.11985
 | 
			
		||||
-70.57319 44.86685
 | 
			
		||||
-73.87579 -50.62886
 | 
			
		||||
-70.57319 44.86685
 | 
			
		||||
-64.26037 -45.54158
 | 
			
		||||
-64.26037 -45.54158
 | 
			
		||||
-70.57319 44.86685
 | 
			
		||||
-69.61521 31.86262
 | 
			
		||||
-64.26037 -45.54158
 | 
			
		||||
-69.61521 31.86262
 | 
			
		||||
-64.96236 19.68153
 | 
			
		||||
-64.26037 -45.54158
 | 
			
		||||
-64.96236 19.68153
 | 
			
		||||
-57.00677 9.350201
 | 
			
		||||
-64.26037 -45.54158
 | 
			
		||||
-57.00677 9.350201
 | 
			
		||||
-56.86785 -37.56115
 | 
			
		||||
-56.86785 -37.56115
 | 
			
		||||
-57.00677 9.350201
 | 
			
		||||
-51.7342 -16.73615
 | 
			
		||||
-51.7342 -16.73615
 | 
			
		||||
-57.00677 9.350201
 | 
			
		||||
-46.41893 1.739326
 | 
			
		||||
-56.86785 -37.56115
 | 
			
		||||
-51.7342 -16.73615
 | 
			
		||||
-52.52979 -27.58529
 | 
			
		||||
-51.7342 -16.73615
 | 
			
		||||
-46.41893 1.739326
 | 
			
		||||
-43.24859 -39.15101
 | 
			
		||||
-43.24859 -39.15101
 | 
			
		||||
-46.41893 1.739326
 | 
			
		||||
-34.09116 -2.50966
 | 
			
		||||
-43.24859 -39.15101
 | 
			
		||||
-34.09116 -2.50966
 | 
			
		||||
-28.50562 -58.04747
 | 
			
		||||
-28.50562 -58.04747
 | 
			
		||||
-34.09116 -2.50966
 | 
			
		||||
-21.06243 -3.038659
 | 
			
		||||
-28.50562 -58.04747
 | 
			
		||||
-21.06243 -3.038659
 | 
			
		||||
-8.827904 -71.73027
 | 
			
		||||
-8.827904 -71.73027
 | 
			
		||||
-21.06243 -3.038659
 | 
			
		||||
-8.430764 0.1969107
 | 
			
		||||
-8.827904 -71.73027
 | 
			
		||||
-8.430764 0.1969107
 | 
			
		||||
14.01921 -78.97189
 | 
			
		||||
14.01921 -78.97189
 | 
			
		||||
-8.430764 0.1969107
 | 
			
		||||
2.739249 6.924362
 | 
			
		||||
14.01921 -78.97189
 | 
			
		||||
2.739249 6.924362
 | 
			
		||||
11.50623 16.57672
 | 
			
		||||
14.01921 -78.97189
 | 
			
		||||
11.50623 16.57672
 | 
			
		||||
17.1313 28.34049
 | 
			
		||||
14.01921 -78.97189
 | 
			
		||||
17.1313 28.34049
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
17.1313 28.34049
 | 
			
		||||
19.14039 41.22425
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
19.14039 41.22425
 | 
			
		||||
23.07544 73.93119
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
23.07544 73.93119
 | 
			
		||||
29.36394 74.9028
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
29.36394 74.9028
 | 
			
		||||
35.52051 76.51087
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
35.52051 76.51087
 | 
			
		||||
41.48091 78.73864
 | 
			
		||||
37.98603 -79.12265
 | 
			
		||||
41.48091 78.73864
 | 
			
		||||
60.92244 -72.16905
 | 
			
		||||
60.92244 -72.16905
 | 
			
		||||
41.48091 78.73864
 | 
			
		||||
47.18293 81.56284
 | 
			
		||||
60.92244 -72.16905
 | 
			
		||||
47.18293 81.56284
 | 
			
		||||
52.56709 84.95402
 | 
			
		||||
60.92244 -72.16905
 | 
			
		||||
52.56709 84.95402
 | 
			
		||||
57.67648 89.0556
 | 
			
		||||
60.92244 -72.16905
 | 
			
		||||
57.67648 89.0556
 | 
			
		||||
63.67333 91.69501
 | 
			
		||||
60.92244 -72.16905
 | 
			
		||||
63.67333 91.69501
 | 
			
		||||
80.77074 -58.7349
 | 
			
		||||
80.77074 -58.7349
 | 
			
		||||
63.67333 91.69501
 | 
			
		||||
70.14898 92.69238
 | 
			
		||||
80.77074 -58.7349
 | 
			
		||||
70.14898 92.69238
 | 
			
		||||
76.66211 91.97975
 | 
			
		||||
80.77074 -58.7349
 | 
			
		||||
76.66211 91.97975
 | 
			
		||||
82.76887 89.60568
 | 
			
		||||
80.77074 -58.7349
 | 
			
		||||
82.76887 89.60568
 | 
			
		||||
95.75028 -40.02542
 | 
			
		||||
95.75028 -40.02542
 | 
			
		||||
82.76887 89.60568
 | 
			
		||||
88.83104 50.24595
 | 
			
		||||
88.83104 50.24595
 | 
			
		||||
82.76887 89.60568
 | 
			
		||||
88.0531 85.73196
 | 
			
		||||
95.75028 -40.02542
 | 
			
		||||
88.83104 50.24595
 | 
			
		||||
100.8951 29.53631
 | 
			
		||||
95.75028 -40.02542
 | 
			
		||||
100.8951 29.53631
 | 
			
		||||
104.5172 -17.71909
 | 
			
		||||
104.5172 -17.71909
 | 
			
		||||
100.8951 29.53631
 | 
			
		||||
106.285 6.182927
 | 
			
		||||
-38.45807 33.09269
 | 
			
		||||
-38.28861 40.08139
 | 
			
		||||
-37.78529 35.38022
 | 
			
		||||
-38.28861 40.08139
 | 
			
		||||
-38.45807 33.09269
 | 
			
		||||
-38.42946 47.11159
 | 
			
		||||
-37.78529 35.38022
 | 
			
		||||
-38.28861 40.08139
 | 
			
		||||
-37.72749 37.76394
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										10
									
								
								testbed/data/star.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								testbed/data/star.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
350 75
 | 
			
		||||
379 161
 | 
			
		||||
469 161
 | 
			
		||||
397 215
 | 
			
		||||
423 301
 | 
			
		||||
350 250
 | 
			
		||||
277 301
 | 
			
		||||
303 215
 | 
			
		||||
231 161
 | 
			
		||||
321 161
 | 
			
		||||
							
								
								
									
										16
									
								
								testbed/data/strange.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								testbed/data/strange.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
400 472
 | 
			
		||||
500 392
 | 
			
		||||
520 272
 | 
			
		||||
460 232
 | 
			
		||||
580 212
 | 
			
		||||
480 152
 | 
			
		||||
360 172
 | 
			
		||||
360 52
 | 
			
		||||
300 112
 | 
			
		||||
200 32
 | 
			
		||||
120 92
 | 
			
		||||
200 72
 | 
			
		||||
340 272
 | 
			
		||||
208 212
 | 
			
		||||
180 352
 | 
			
		||||
300 312
 | 
			
		||||
							
								
								
									
										55
									
								
								testbed/data/tank.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								testbed/data/tank.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,55 @@
 | 
			
		||||
-37.317758 260.65677
 | 
			
		||||
-37.317758 317.44301
 | 
			
		||||
-34.741139 339.73612
 | 
			
		||||
-27.330761 354.21222
 | 
			
		||||
59.525828 406.25724
 | 
			
		||||
444.17643 404.87856
 | 
			
		||||
538.9604 368.68832
 | 
			
		||||
555.15984 355.59089
 | 
			
		||||
558.95121 344.90615
 | 
			
		||||
559.64054 325.94936
 | 
			
		||||
568.19908 315.85885
 | 
			
		||||
572.586 322.56108
 | 
			
		||||
584.65003 322.31737
 | 
			
		||||
568.80837 296.11771
 | 
			
		||||
557.59736 289.78104
 | 
			
		||||
539.56224 286.49085
 | 
			
		||||
443.31476 286.82943
 | 
			
		||||
389.89106 280.79772
 | 
			
		||||
405.74583 272.00866
 | 
			
		||||
412.98388 262.01326
 | 
			
		||||
475.5413 262.1856
 | 
			
		||||
480.71134 267.01096
 | 
			
		||||
514.66123 266.66629
 | 
			
		||||
520.34827 262.01326
 | 
			
		||||
669.93463 262.01326
 | 
			
		||||
670.45162 264.08127
 | 
			
		||||
676.91417 263.82277
 | 
			
		||||
678.03434 262.09943
 | 
			
		||||
680.61936 261.66859
 | 
			
		||||
683.03204 255.46455
 | 
			
		||||
682.51504 249.94985
 | 
			
		||||
677.862 243.91814
 | 
			
		||||
668.81445 243.4873
 | 
			
		||||
665.28159 247.02016
 | 
			
		||||
520.86527 246.33082
 | 
			
		||||
514.66123 240.12678
 | 
			
		||||
479.67733 239.95444
 | 
			
		||||
475.5413 243.57347
 | 
			
		||||
412.98388 243.05647
 | 
			
		||||
397.64611 227.54636
 | 
			
		||||
324.74862 221.16998
 | 
			
		||||
323.88695 214.79361
 | 
			
		||||
328.36764 211.86392
 | 
			
		||||
326.6443 207.03856
 | 
			
		||||
300.79412 207.03856
 | 
			
		||||
295.62409 211.69159
 | 
			
		||||
285.28402 208.2449
 | 
			
		||||
272.01426 211.17458
 | 
			
		||||
96.577738 209.62357
 | 
			
		||||
80.205961 211.86392
 | 
			
		||||
58.491817 232.7164
 | 
			
		||||
74.863594 254.94755
 | 
			
		||||
168.61356 269.25131
 | 
			
		||||
175.16228 276.83403
 | 
			
		||||
87.271676 260.11758
 | 
			
		||||
							
								
								
									
										6
									
								
								testbed/data/test.dat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								testbed/data/test.dat
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
227.15518 452.33157
 | 
			
		||||
344.46202 352.32647
 | 
			
		||||
472.15156 452.33157
 | 
			
		||||
603.11967 352.32647
 | 
			
		||||
344.46202 725.78132
 | 
			
		||||
81.390847 352.32647
 | 
			
		||||
							
								
								
									
										244
									
								
								testbed/main.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										244
									
								
								testbed/main.cc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,244 @@
 | 
			
		||||
/* 
 | 
			
		||||
 * Poly2Tri Copyright (c) 2009-2010, Mason Green
 | 
			
		||||
 * http://code.google.com/p/poly2tri/
 | 
			
		||||
 *
 | 
			
		||||
 * All rights reserved.
 | 
			
		||||
 *
 | 
			
		||||
 * Redistribution and use in source and binary forms, with or without modification,
 | 
			
		||||
 * are permitted provided that the following conditions are met:
 | 
			
		||||
 *
 | 
			
		||||
 * * Redistributions of source code must retain the above copyright notice,
 | 
			
		||||
 *   this list of conditions and the following disclaimer.
 | 
			
		||||
 * * Redistributions in binary form must reproduce the above copyright notice,
 | 
			
		||||
 *   this list of conditions and the following disclaimer in the documentation
 | 
			
		||||
 *   and/or other materials provided with the distribution.
 | 
			
		||||
 * * Neither the name of Poly2Tri nor the names of its contributors may be
 | 
			
		||||
 *   used to endorse or promote products derived from this software without specific
 | 
			
		||||
 *   prior written permission.
 | 
			
		||||
 *
 | 
			
		||||
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 | 
			
		||||
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 | 
			
		||||
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 | 
			
		||||
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 | 
			
		||||
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 | 
			
		||||
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 | 
			
		||||
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 | 
			
		||||
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 | 
			
		||||
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 | 
			
		||||
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 | 
			
		||||
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
			
		||||
 */
 | 
			
		||||
#include <cstdlib>
 | 
			
		||||
#include <GL/glfw.h>
 | 
			
		||||
#include <time.h>
 | 
			
		||||
#include <fstream>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <sstream>
 | 
			
		||||
#include <algorithm>
 | 
			
		||||
#include <iterator>
 | 
			
		||||
#include <iostream>
 | 
			
		||||
using namespace std;
 | 
			
		||||
 | 
			
		||||
#include "../poly2tri/poly2tri.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void Init();
 | 
			
		||||
void ShutDown(int return_code);
 | 
			
		||||
void MainLoop();
 | 
			
		||||
void Draw();
 | 
			
		||||
 
 | 
			
		||||
float rotate_y = 0,
 | 
			
		||||
      rotate_z = 0;
 | 
			
		||||
const float rotations_per_tick = .2;
 | 
			
		||||
 | 
			
		||||
list<Triangle*> triangles;
 | 
			
		||||
 | 
			
		||||
double StringToDouble(const std::string& s) {
 | 
			
		||||
  std::istringstream i(s);
 | 
			
		||||
  double x;
 | 
			
		||||
  if (!(i >> x))
 | 
			
		||||
   return 0;
 | 
			
		||||
  return x;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main(int argc, char* argv[]) {
 | 
			
		||||
  
 | 
			
		||||
	/*
 | 
			
		||||
  // initialize random seed: 
 | 
			
		||||
  srand ( time(NULL) );
 | 
			
		||||
  
 | 
			
		||||
  int a = 0;
 | 
			
		||||
  int b = 2000;
 | 
			
		||||
  
 | 
			
		||||
  for(int i = 0; i < num_points; i++) {
 | 
			
		||||
    double x = rand() % (b - a - 1) + a + 1;
 | 
			
		||||
    double y = rand() % (b - a - 1) + a + 1;
 | 
			
		||||
    polyline[i] = Point(x, y);
 | 
			
		||||
  }
 | 
			
		||||
	
 | 
			
		||||
  polyline[0] = Point(5, 5);
 | 
			
		||||
	polyline[1] = Point(-5, 5);
 | 
			
		||||
	polyline[2] = Point(-5, -5); 
 | 
			
		||||
	polyline[3] = Point(5, -5);
 | 
			
		||||
  
 | 
			
		||||
  //Point foo[] = {Point(5, 5.1), Point(-5, 5.2), Point(-5, -5.3), Point(5, -5.4), Point(5.1, 5.5), Point(5, 5.5),
 | 
			
		||||
  //             Point(-5, 5.6), Point(-5, -5.7), Point(5, -5.8), Point(5, 5.9), Point(-5, 5.1), 
 | 
			
		||||
  //             Point(-5, -5.11), Point(5, -5.12), Point(5, 5.13), Point(-5, 5.14), Point(-5, -5.15), Point(5, -5.16)};
 | 
			
		||||
  
 | 
			
		||||
  */
 | 
			
		||||
  
 | 
			
		||||
  string line;
 | 
			
		||||
  ifstream myfile (argv[1]);
 | 
			
		||||
  vector<Point> points;
 | 
			
		||||
  if (myfile.is_open()) {
 | 
			
		||||
    while (!myfile.eof()) {
 | 
			
		||||
      getline (myfile,line);
 | 
			
		||||
      if(line.size() == 0) {
 | 
			
		||||
        break;
 | 
			
		||||
      }
 | 
			
		||||
      istringstream iss(line);
 | 
			
		||||
      vector<string> tokens;
 | 
			
		||||
      copy(istream_iterator<string>(iss), istream_iterator<string>(), 
 | 
			
		||||
           back_inserter<vector<string> >(tokens));
 | 
			
		||||
      double x = StringToDouble(tokens[0]);
 | 
			
		||||
      double y = StringToDouble(tokens[1]);
 | 
			
		||||
      points.push_back(Point(x, y));
 | 
			
		||||
    }
 | 
			
		||||
    myfile.close();
 | 
			
		||||
  } else {
 | 
			
		||||
    cout << "File not opened" << endl;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  int num_points = points.size();
 | 
			
		||||
  cout << "Number of points = " << num_points << endl;
 | 
			
		||||
  
 | 
			
		||||
	Point* polyline = new Point[num_points];
 | 
			
		||||
  for(int i = 0; i < num_points; i++) {
 | 
			
		||||
    polyline[i] = points[i];
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  Init();
 | 
			
		||||
  
 | 
			
		||||
  // Perform triangulation
 | 
			
		||||
  double init_time = glfwGetTime();
 | 
			
		||||
  CDT * cdt = new CDT(polyline, num_points);
 | 
			
		||||
  cdt->Triangulate();
 | 
			
		||||
  double dt = glfwGetTime() - init_time;
 | 
			
		||||
  cout << "Elapsed time (secs) = " << dt << endl;
 | 
			
		||||
  
 | 
			
		||||
  triangles = cdt->GetTriangles();
 | 
			
		||||
  
 | 
			
		||||
  MainLoop();
 | 
			
		||||
  
 | 
			
		||||
  delete [] polyline;
 | 
			
		||||
  ShutDown(0);
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
void Init()
 | 
			
		||||
{
 | 
			
		||||
  const int window_width = 800,
 | 
			
		||||
            window_height = 600;
 | 
			
		||||
  
 | 
			
		||||
  if (glfwInit() != GL_TRUE)
 | 
			
		||||
    ShutDown(1);
 | 
			
		||||
  // 800 x 600, 16 bit color, no depth, alpha or stencil buffers, windowed
 | 
			
		||||
  if (glfwOpenWindow(window_width, window_height, 5, 6, 5, 0, 0, 0, GLFW_WINDOW) != GL_TRUE)
 | 
			
		||||
	ShutDown(1);
 | 
			
		||||
	
 | 
			
		||||
  glfwSetWindowTitle("The GLFW Window");
 | 
			
		||||
 
 | 
			
		||||
  glEnable(GL_BLEND);
 | 
			
		||||
  glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 | 
			
		||||
  glClearColor(0.0, 0.0, 0.0, 0.0);
 | 
			
		||||
  glHint (GL_LINE_SMOOTH_HINT, GL_NICEST);
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
void ShutDown(int return_code)
 | 
			
		||||
{
 | 
			
		||||
  glfwTerminate();
 | 
			
		||||
  exit(return_code);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
void MainLoop()
 | 
			
		||||
{
 | 
			
		||||
  // the time of the previous frame
 | 
			
		||||
  double old_time = glfwGetTime();
 | 
			
		||||
  // this just loops as long as the program runs
 | 
			
		||||
  bool running = true;
 | 
			
		||||
  
 | 
			
		||||
  while(running)
 | 
			
		||||
  {
 | 
			
		||||
    // calculate time elapsed, and the amount by which stuff rotates
 | 
			
		||||
    double current_time = glfwGetTime(),
 | 
			
		||||
    delta_rotate = (current_time - old_time) * rotations_per_tick * 360;
 | 
			
		||||
    old_time = current_time;
 | 
			
		||||
    
 | 
			
		||||
    // escape to quit, arrow keys to rotate view
 | 
			
		||||
    // Check if ESC key was pressed or window was closed
 | 
			
		||||
    running = !glfwGetKey( GLFW_KEY_ESC ) && glfwGetWindowParam( GLFW_OPENED );
 | 
			
		||||
      
 | 
			
		||||
    if (glfwGetKey(GLFW_KEY_LEFT) == GLFW_PRESS)
 | 
			
		||||
      rotate_y += delta_rotate;
 | 
			
		||||
    if (glfwGetKey(GLFW_KEY_RIGHT) == GLFW_PRESS)
 | 
			
		||||
      rotate_y -= delta_rotate;
 | 
			
		||||
    // z axis always rotates
 | 
			
		||||
    rotate_z += delta_rotate;
 | 
			
		||||
 
 | 
			
		||||
    // Draw the scene
 | 
			
		||||
    Draw();
 | 
			
		||||
    // swap back and front buffers
 | 
			
		||||
    glfwSwapBuffers();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ResetZoom(double zoom, double cx, double cy, double width, double height) {
 | 
			
		||||
 | 
			
		||||
    double left = -width / zoom;
 | 
			
		||||
    double right = width / zoom;
 | 
			
		||||
    double bottom = -height / zoom;
 | 
			
		||||
    double top = height / zoom;
 | 
			
		||||
    
 | 
			
		||||
    // Reset viewport
 | 
			
		||||
    glLoadIdentity();
 | 
			
		||||
    glMatrixMode(GL_PROJECTION);
 | 
			
		||||
    glLoadIdentity();
 | 
			
		||||
    
 | 
			
		||||
    // Reset ortho view
 | 
			
		||||
    glOrtho(left, right, bottom, top, 1, -1);
 | 
			
		||||
    glTranslatef(-cx, -cy, 0);
 | 
			
		||||
    glMatrixMode(GL_MODELVIEW);
 | 
			
		||||
    glDisable(GL_DEPTH_TEST);
 | 
			
		||||
    glLoadIdentity();
 | 
			
		||||
    
 | 
			
		||||
    // Clear the screen
 | 
			
		||||
    glClear(GL_COLOR_BUFFER_BIT);
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
    
 | 
			
		||||
void Draw()
 | 
			
		||||
{
 | 
			
		||||
  // reset zoom
 | 
			
		||||
  double zoom = 0.5;
 | 
			
		||||
  ResetZoom(zoom, 0, 0, 800, 600);
 | 
			
		||||
  
 | 
			
		||||
  list<Triangle*>::iterator it; 
 | 
			
		||||
  for (it = triangles.begin(); it != triangles.end(); it++) {
 | 
			
		||||
    Triangle* t = *it;
 | 
			
		||||
    Point* a = t->GetPoint(0);
 | 
			
		||||
    Point* b = t->GetPoint(1);
 | 
			
		||||
    Point* c = t->GetPoint(2);
 | 
			
		||||
    
 | 
			
		||||
    // Red
 | 
			
		||||
    glColor3f(1, 0, 0);
 | 
			
		||||
    
 | 
			
		||||
    glBegin(GL_LINE_LOOP);			  // Drawing Using Triangles
 | 
			
		||||
      glVertex2f(a->x, a->y);				// Top
 | 
			
		||||
      glVertex2f(b->x, b->y);				// Bottom Left
 | 
			
		||||
      glVertex2f(c->x, c->y);				// Bottom Right
 | 
			
		||||
    glEnd();
 | 
			
		||||
  
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user