Trouble triangulating a surface
Mostra commenti meno recenti
I have attached a text file with the data I am discussing.
I need to triangulate this data so that I can write the triangulation to an stl file using stlwrite (from the file exchange). The problem is that this sequence produces triangles that are NOT in the plane for seemingly no reason. As can be seen, all of the points are in a circle. How can I triangulate this surface without the wierd out of plane triangles appearing??
>> D = importdata('Endcap.txt');
>> TRI = delaunay(D(:,1),D(:,2),D(:,3));
>> trisurf(TRI,D(:,1),D(:,2),D(:,3))
>> hold on
>> plot3(D(:,1),D(:,2),D(:,3),'*r')

Note that I expected something like this:
>> surf([D(:,1),repmat(mean(D(:,1)),length(D),1)],[D(:,2),repmat(mean(D(:,2)),length(D),1)],[D(:,3),repmat(mean(D(:,3)),length(D),1)])
3 Commenti
darova
il 5 Dic 2019
try alphaShape for triangulating
David Winthrop
il 5 Dic 2019
Modificato: David Winthrop
il 5 Dic 2019
darova
il 5 Dic 2019
Risposte (0)
Categorie
Scopri di più su Delaunay Triangulation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!