Plotting Edge Data on Mesh Plots

I have a vector of complex data that describes information on mesh edges. I am attempting to plot this data using trisurf or trimesh, but these functions can only plot node or face data. Is there any way to plot this data in MATLAB?

回答(2 个)

Matt Fig
Matt Fig 2011-4-12

0 个投票

You could use PATCH to specify the edges.

1 个评论

If you look at the PATCH documentation there are only 4 options, none of which satisfy my needs. EdgeColor can be {ColorSpec} | none | flat | interp. ColorSpec is a flat color for all edges, and flat and interp are node based. The only way I can see to fix this is to duplicate nodes and then use the flat option as long as each edge has a unique node for determining color. As a point of reference, my test geometry has 10 nodes, 24 edges, and 18 triangles.

请先登录,再进行评论。

Victor
Victor 2011-4-14

0 个投票

So I manually wrote a program using PATCH and will submit it to the File Exchange.

类别

提问:

2011-4-12

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by