sphere_delaunay_test 25-Mar-2019 07:47:59 sphere_delaunay_test MATLAB version: Test sphere_delaunay. SPHERE_DELAUNAY_TEST01 Choose random points on the unit sphere. Call SPHERE_DELAUNAY to compute the Delaunay triangulation. Call TRIANGULATION_NEIGHBOR_TRIANGLES to get triangle neighbors. Call STRI_VERTICES_TO_AREAS to get triangle areas. Data points: Row: 1 2 3 Col 1: 0.915568 -0.257797 -0.308668 2: -0.171751 0.901345 0.397592 3: 0.541822 0.447986 -0.711152 4: -0.620052 -0.745456 0.244603 5: 0.026281 -0.894727 0.445840 6: 0.016716 -0.591520 0.806117 7: 0.987108 0.084661 0.135834 8: -0.220974 0.974193 0.046018 9: 0.679580 -0.416543 -0.603873 10: 0.936980 -0.037537 0.347361 Check Euler's formula on a sphere: Faces = 16 Vertices = 10 Edges = 24 F+V-E-2 = 0 Delaunay triangles Row: 1 2 3 Col 1: 1 3 7 2: 1 5 9 3: 1 7 10 4: 1 9 3 5: 1 10 5 6: 2 4 6 7: 2 6 10 8: 2 7 8 9: 2 8 4 10: 2 10 7 11: 3 4 8 12: 3 8 7 13: 3 9 4 14: 4 5 6 15: 4 9 5 16: 5 10 6 Triangle neighbors Row: 1 2 3 Col 1: 12 3 4 2: 15 4 5 3: 10 5 1 4: 13 1 2 5: 16 2 3 6: 14 7 9 7: 16 10 6 8: 12 9 10 9: 11 6 8 10: 3 8 7 11: 9 12 13 12: 8 1 11 13: 15 11 4 14: 16 6 15 15: 2 14 13 16: 7 14 5 Spherical area of triangles 1: 0.294880 2: 0.365546 3: 0.068950 4: 0.200801 5: 0.588072 6: 1.253084 7: 1.449284 8: 0.384646 9: 0.614523 10: 0.261743 11: 3.824953 12: 0.912709 13: 1.173348 14: 0.178846 15: 0.644585 16: 0.350402 Area sum = 12.566371 4 * PI = 12.566371 SPHERE_DELAUNAY_TEST02 Choose random points on the unit sphere. Call SPHERE_DELAUNAY to compute the Delaunay triangulation. Display an image of the Delaunay triangulation. Data points: Row: 1 2 3 Col 1: 0.915568 -0.257797 -0.308668 2: -0.171751 0.901345 0.397592 3: 0.541822 0.447986 -0.711152 4: -0.620052 -0.745456 0.244603 5: 0.026281 -0.894727 0.445840 6: 0.016716 -0.591520 0.806117 7: 0.987108 0.084661 0.135834 8: -0.220974 0.974193 0.046018 9: 0.679580 -0.416543 -0.603873 10: 0.936980 -0.037537 0.347361 11: -0.790266 -0.322477 -0.521045 12: 0.342480 -0.767254 -0.542243 13: 0.069208 -0.956800 0.282391 14: 0.764412 -0.432490 0.478150 15: -0.599427 0.710574 -0.368472 16: -0.638289 -0.234792 0.733116 17: 0.331413 -0.653883 -0.680148 18: -0.720304 0.121381 -0.682956 19: -0.359903 0.931597 0.050960 20: -0.528160 -0.708164 0.468562 21: -0.114968 -0.047273 -0.992244 22: -0.007810 -0.679244 0.733871 23: 0.328497 -0.404415 0.853545 24: 0.148354 0.744604 0.650812 25: 0.704016 0.655377 0.273573 26: 0.867790 0.181536 -0.462585 27: 0.213656 0.969908 -0.116747 28: -0.492074 0.534329 -0.687281 29: 0.241202 -0.155084 0.958003 30: 0.175574 -0.258658 0.949879 31: -0.258893 -0.456159 0.851407 32: 0.878409 0.466006 -0.105998 33: -0.682985 0.193322 -0.704385 34: 0.417484 0.449129 -0.789931 35: -0.199614 -0.952691 -0.229202 36: 0.434509 -0.656468 0.616645 37: 0.668596 -0.648584 0.363757 38: -0.187404 -0.251422 0.949561 39: 0.120848 -0.877533 0.464038 40: -0.766804 0.609429 -0.201512 41: 0.301255 0.040688 0.952675 42: -0.106947 -0.280224 -0.953958 43: -0.037400 -0.028761 -0.998886 44: -0.321987 -0.732749 -0.599503 45: -0.007006 -0.699781 0.714323 46: 0.458877 0.566868 -0.684173 47: 0.128447 -0.846309 0.516975 48: -0.699698 0.424710 0.574495 49: -0.905411 0.324636 0.273574 50: 0.688430 -0.463664 -0.557745 51: 0.943084 0.012562 -0.332318 52: 0.461191 -0.871458 0.166925 53: 0.026532 -0.939526 -0.341447 54: 0.411764 -0.786423 -0.460423 55: -0.373948 -0.854472 0.360611 56: -0.182299 -0.811290 -0.555496 57: 0.562038 -0.732537 0.384061 58: 0.202379 -0.830504 0.518947 59: -0.777349 0.607748 0.162390 60: -0.687653 -0.247328 0.682614 61: -0.632632 -0.249458 0.733176 62: -0.783310 -0.347121 0.515687 63: -0.729120 0.487242 0.480603 64: 0.732846 -0.117475 -0.670176 65: -0.928430 0.046212 0.368622 66: -0.635971 0.355620 0.684891 67: -0.084279 0.472181 0.877463 68: 0.641274 -0.053048 0.765476 69: -0.370767 0.141012 0.917958 70: 0.293359 0.817562 0.495513 71: 0.959370 0.066428 -0.274221 72: 0.426840 -0.158011 -0.890416 73: 0.614951 -0.130157 0.777749 74: -0.884274 -0.243792 0.398276 75: 0.219448 0.962142 -0.161631 76: 0.097723 -0.050411 0.993936 77: -0.913207 0.399677 -0.079445 78: 0.143236 -0.738911 -0.658402 79: -0.505566 0.562809 0.653949 80: 0.727159 0.629136 0.274642 81: 0.966732 0.050819 -0.250691 82: -0.635499 -0.194505 0.747201 83: 0.097929 -0.192995 0.976301 84: 0.144941 -0.987367 -0.064013 85: -0.524148 0.393122 -0.755463 86: -0.786076 0.052191 0.615922 87: -0.707007 -0.679484 0.196067 88: -0.867451 0.223084 -0.444705 89: -0.113898 0.155456 0.981255 90: 0.924722 -0.355472 0.136122 91: 0.072856 -0.964753 -0.252872 92: -0.307384 -0.677521 -0.668192 93: 0.545007 -0.300647 -0.782674 94: -0.456045 0.879522 0.135883 95: -0.882542 0.409808 -0.230604 96: 0.484424 -0.644465 -0.591606 97: -0.496734 0.761695 0.416024 98: -0.327489 -0.940691 0.088606 99: -0.384991 0.818533 0.426362 100: 0.229868 0.865256 0.445526 Figure 1: Delaunay triangulation with TRISURF Plot saved as "test02_plot1.png". Plot saved as "test02_plot2.png". Figure 2: Delaunay triangulation with PATCH. SPHERE_DELAUNAY_TEST03 Choose SPHERE_GRIDPOINTS_ICOS2 points on the unit sphere. Call SPHERE_DELAUNAY to compute the Delaunay triangulation. Display an image of the Delaunay triangulation. Data points: Row: 1 2 3 Col 1: 0.850651 0.525731 0.000000 2: 0.850651 -0.525731 0.000000 3: 0.525731 0.000000 0.850651 4: 0.525731 0.000000 -0.850651 5: 0.000000 0.850651 0.525731 6: 0.000000 0.850651 -0.525731 7: 0.000000 -0.850651 0.525731 8: 0.000000 -0.850651 -0.525731 9: -0.525731 0.000000 0.850651 10: -0.525731 0.000000 -0.850651 11: -0.850651 0.525731 0.000000 12: -0.850651 -0.525731 0.000000 13: 1.000000 0.000000 0.000000 14: 0.809017 0.309017 0.500000 15: 0.809017 0.309017 -0.500000 16: 0.500000 0.809017 0.309017 17: 0.500000 0.809017 -0.309017 18: 0.809017 -0.309017 0.500000 19: 0.809017 -0.309017 -0.500000 20: 0.500000 -0.809017 0.309017 21: 0.500000 -0.809017 -0.309017 22: 0.309017 0.500000 0.809017 23: 0.309017 -0.500000 0.809017 24: -0.000000 0.000000 1.000000 25: 0.309017 0.500000 -0.809017 26: 0.309017 -0.500000 -0.809017 27: -0.000000 0.000000 -1.000000 28: 0.000000 1.000000 0.000000 29: -0.309017 0.500000 0.809017 30: -0.500000 0.809017 0.309017 31: -0.309017 0.500000 -0.809017 32: -0.500000 0.809017 -0.309017 33: 0.000000 -1.000000 0.000000 34: -0.309017 -0.500000 0.809017 35: -0.500000 -0.809017 0.309017 36: -0.309017 -0.500000 -0.809017 37: -0.500000 -0.809017 -0.309017 38: -0.809017 0.309017 0.500000 39: -0.809017 -0.309017 0.500000 40: -0.809017 0.309017 -0.500000 41: -0.809017 -0.309017 -0.500000 42: -1.000000 0.000000 0.000000 Triangles Row: 1 2 3 Col 1: 1 13 15 2: 1 14 13 3: 1 15 17 4: 1 16 14 5: 1 17 16 6: 2 13 18 7: 2 18 20 8: 2 19 13 9: 2 20 21 10: 2 21 19 11: 3 14 22 12: 3 18 14 13: 3 22 24 14: 3 23 18 15: 3 24 23 16: 4 15 19 17: 4 19 26 18: 4 25 15 19: 4 26 27 20: 4 27 25 21: 5 16 28 22: 5 22 16 23: 5 28 30 24: 5 29 22 25: 5 30 29 26: 6 17 25 27: 6 25 31 28: 6 28 17 29: 6 31 32 30: 6 32 28 31: 7 20 23 32: 7 23 34 33: 7 33 20 34: 7 34 35 35: 7 35 33 36: 8 21 33 37: 8 26 21 38: 8 33 37 39: 8 36 26 40: 8 37 36 41: 9 24 29 42: 9 29 38 43: 9 34 24 44: 9 38 39 45: 9 39 34 46: 10 27 36 47: 10 31 27 48: 10 36 41 49: 10 40 31 50: 10 41 40 51: 11 30 32 52: 11 32 40 53: 11 38 30 54: 11 40 42 55: 11 42 38 56: 12 35 39 57: 12 37 35 58: 12 39 42 59: 12 41 37 60: 12 42 41 61: 13 14 18 62: 13 19 15 63: 14 16 22 64: 15 25 17 65: 16 17 28 66: 18 23 20 67: 19 21 26 68: 20 33 21 69: 22 29 24 70: 23 24 34 71: 25 27 31 72: 26 36 27 73: 28 32 30 74: 29 30 38 75: 31 40 32 76: 33 35 37 77: 34 39 35 78: 36 37 41 79: 38 42 39 80: 40 41 42 Figure 1: Delaunay triangulation with TRISURF Plot saved as "test03_plot1.png". Plot saved as "test03_plot2.png". Figure 2: Delaunay triangulation with PATCH. sphere_delaunay_test: Normal end of execution. 25-Mar-2019 07:48:05 diary off