- P: Nx2: node coordinates
- T: Mx3: triangulation
- F: Mx1: scalar field to be plotted, this case orientation
Color a delaunay triangulation
5 次查看(过去 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 中查找有关 Delaunay Triangulation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!