I have been trying to plot the contour of a 3D Mesh and I was able to get the vertices at the edge of my 3D mesh. However, when I try to connect these vertices with a line, I get really bad results.
The first image is the set of points representing the vertices. The second image shows my attempt trying to connect the edge vertices. The third image shows my mesh with the failed plotted edge vertices. Is there a way to connect with a line all the edge vertices properly to create the contour for my mesh?
The following are the x,y, and z coordinates for the edge vertices
x = [-26.68821335 -26.60249519 -26.95862198 -26.58558273 -26.84652328
-26.04704857 -26.98462296 -27.25349998 -27.24040604 -24.06988525
-24.39101601 -24.81681442 -25.26436043 -23.57262802 -25.47171783
-25.85359192 -25.89053535 -26.11143112 -26.43889046 -26.29651451
-23.00212479 -26.72643661 -26.90960121 -27.4543705 -27.78765678
-28.10663223 -28.45610428 -28.89383125 -29.47120667 -29.71392441
-30.28079987 -30.37588501 -30.75014877 -23.64927864 -25.55357742
-26.20693016 -31.03199387 -22.2843647 -22.96079636 -23.18783379
-26.75884247 -31.30900002 -22.18011665 -22.45661926 -22.68852615
-31.17599869 -22.21070862 -22.22953606 -27.8441143 -30.98797035
-28.36685371 -30.91625023 -28.84769821 -29.03984642 -29.26161957
-29.51830292 -30.89692116 -29.97975349 -30.76473808 -30.87370872]
y = [ 9.04875755 8.68356895 8.9154768 7.77346563 8.51372337 7.24554348
7.20953274 7.50647259 7.76091146 6.4849844 6.22659349 5.91468191
5.93531656 6.96326637 5.93945169 5.93444681 6.35006809 6.3862195
6.35229731 6.5966897 7.81059933 6.67235184 6.88526058 6.79734039
6.75841141 7.09598207 7.07125425 7.3789506 7.5661664 8.21220493
8.38313675 8.97794437 9.45121193 14.00763416 15.21823788 15.42790127
10.15401268 10.23243141 13.15625858 13.79493141 15.53408337 10.75207901
10.92155552 12.00337887 12.60393333 11.34342861 11.44986439 11.19862938
15.49152184 11.92475033 15.48239803 12.48376846 15.46685505 14.98930645
14.54309082 14.12913227 13.00738716 14.29349232 13.72273445 13.35398388]
z= [40.09610748 40.2755394 39.78066254 40.46575165 40.00103378 41.22445679
40.07003403 39.68055344 39.6496048 43.70822525 43.36251831 42.89729309
42.36333847 44.2328949 42.11548233 41.65794373 41.55335236 41.28055573
40.88649368 41.02244949 44.80235672 40.48281097 40.22029877 39.55779266
39.14909744 38.68617249 38.25093842 37.63653183 36.86626053 36.41537857
35.65213776 35.38962555 34.78951263 42.89670944 40.04175186 39.09609985
34.24311447 45.34605408 43.98243332 43.55350113 38.31879425 33.72212601
45.37714386 44.8492012 44.44398117 33.72883606 45.25617218 45.2734642
36.87064362 33.80443573 36.17105103 33.72898483 35.52944946 35.43631363
35.28750229 35.07746506 33.58849716 34.4047966 33.53139496 33.50752258]