Hello!
I have a .txt file with the xy coordinates of the border of my mesh. I tried the trinagulate() command, but I get the error “Assertion fail : (area > 0)”. I tried reducing the number of point and got another error “Sorry Error build delaunay triangle error = 20”. My code is only this, since I’m only trying to build the mesh:
mesh Th=triangulate(“Prueba.txt”);
plot(Th,wait=0);
And the file named Prueba.txt (I can’t upload it as a file):
5.54574920787 -4.49888641425
5.55523530867 -3.85300668151
5.59832307088 -3.63028953229
5.70689161584 -3.46325167038
5.86999917512 -3.32962138085
6.02233479385 -3.25167037862
6.10945650222 -3.24053452116
6.2183889641 -3.24053452116
6.34910791835 -3.24053452116
6.33804484427 -3.16258351893
6.29425350937 -3.06236080178
6.33772944961 -3.01781737194
6.58783741163 -2.81737193764
6.77273146329 -2.68374164811
7.0228394253 -2.48329621381
7.25123367833 -2.31625835189
7.30553008137 -2.23830734967
7.43581233533 -2.03786191537
7.54440514142 -1.88195991091
7.64210470132 -1.72605790646
7.72893527616 -1.58129175947
7.81579011213 -1.44766146993
7.87008651518 -1.36971046771
7.91346541091 -1.28062360802
7.96766476945 -1.15812917595
8.02188838911 -1.04677060134
8.08690821045 -0.890868596882
8.16277275572 -0.712694877506
8.22779257707 -0.556792873051
8.27114721167 -0.456570155902
8.28191915222 -0.400890868597
8.30329320543 -0.211581291759
8.31379827358 -0.0334075723831
8.33514806566 0.167037861915
8.34570165606 0.32293986637
8.35623098534 0.489977728285
8.36693014251 0.579064587973
8.30028482564 1.16926503341
8.23385785891 1.65924276169
8.08062457846 1.99331848552
7.86174068737 2.46102449889
7.37008894129 3.12917594655
5.74398687958 4.51002227171
4.97025100562 4.65478841871
4.29567035921 4.28730512249
4.03573664061 3.59688195991
4.03825979786 -2.56124721604
4.1145367823 -2.5723830735
4.20175553518 -2.60579064588
4.29994031763 -2.67260579065
4.37631434658 -2.72828507795
4.43097466653 -2.81737193764
4.47481452368 -2.93986636971
4.48585333663 -3.00668151448
4.5078096569 -3.0846325167
4.50797948479 -3.16258351893
4.46460058906 -3.25167037862
4.41044975278 -3.39643652561
4.37789131985 -3.45211581292
4.3671193793 -3.50779510022
4.34545419257 -3.56347438753
4.29118205065 -3.65256124722
4.25867213998 -3.73051224944
4.20439999806 -3.81959910913
4.18273481132 -3.87527839644
4.21548733327 -3.90868596882
4.28084681039 -3.90868596882
4.36799277989 -3.90868596882
4.44426976433 -3.91982182628
4.48784274908 -3.91982182628
4.54213915212 -3.84187082405
4.60735306248 -3.77505567929
4.67263975622 -3.7416481069
4.77063044966 -3.71937639198
4.90137366503 -3.73051224944
4.97765064947 -3.7416481069
5.05400041729 -3.78619153675
5.10853943161 -3.81959910913
5.19587949013 -3.90868596882
5.23962230277 -3.98663697105
5.26162714529 -4.0868596882
5.26182123431 -4.17594654788
5.27290856952 -4.26503340757
5.54574920787 -4.49888641425
Thanks!