problem with facevertexcdata and patch
3 views (last 30 days)
Show older comments
Hi,
I'm trying the following command:
clf,patch('faces',t,'vertices',p,'FaceVertexCData',qm,'edgecol','y')
which I expect would color my vertices by the array "qm" which is as long as the vertex list, p.
Instead, I get a black object (a 2D manifold in R3), with yellow lines properly delineating the edges of the triangles.
I've tried many permutations of the above line and could successfully executed the examples for the cube, which uses hsv(6) instead of the array qm. But somehow the above refuses to color the triangles.
Any suggestions?
Thanks!
Paul Fischer
1 Comment
Answers (0)
See Also
Categories
Find more on Polygons in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!