- P: Nx2: node coordinates
- T: Mx3: triangulation
- F: Mx1: scalar field to be plotted, this case orientation
Color a delaunay triangulation
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Cristina Garozzo
am 10 Sep. 2014
Kommentiert: Fabio Freschi
am 11 Sep. 2014
I have a delaunay triangulation like the one in attach
. I need to color inside every triangle with a color. I'd like to show the orientation of the triangles. Because I need to highlight the order. Like the second figure
0 Kommentare
Akzeptierte Antwort
Fabio Freschi
am 10 Sep. 2014
Bearbeitet: Fabio Freschi
am 10 Sep. 2014
Let's suppose that your triangulation is organized as follows
you can plot with the following command
>> figure;
>> patch('Faces',T,'Vertices',P,'FaceVertexCData',F,'FaceColor','flat');
Fabio
2 Kommentare
Fabio Freschi
am 11 Sep. 2014
could you post the outputs of the following commands
>> size(x)
>> size(TRI)
>> size(alpha)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!