Plotting Edge Data on Mesh Plots

8 visualizaciones (últimos 30 días)
Victor
Victor el 12 de Abr. de 2011
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?

Respuestas (2)

Matt Fig
Matt Fig el 12 de Abr. de 2011
You could use PATCH to specify the edges.
  1 comentario
Victor
Victor el 12 de Abr. de 2011
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.

Iniciar sesión para comentar.


Victor
Victor el 14 de Abr. de 2011
So I manually wrote a program using PATCH and will submit it to the File Exchange.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by