- P: Nx2: node coordinates
- T: Mx3: triangulation
- F: Mx1: scalar field to be plotted, this case orientation
Color a delaunay triangulation
14 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Fabio Freschi
2014 年 9 月 10 日
編集済み: Fabio Freschi
2014 年 9 月 10 日
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 件のコメント
Fabio Freschi
2014 年 9 月 11 日
could you post the outputs of the following commands
>> size(x)
>> size(TRI)
>> size(alpha)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!