Quesion applying cdata to patch

2 ビュー (過去 30 日間)
Brian
Brian 2014 年 9 月 8 日
編集済み: Brian 2014 年 9 月 8 日
Hello, thanks for reading this,
What I want to do is visualize a reconstructed surface mesh I have using the patch function. I have the x,y,z,r,g,b and connectivity information from meshLab, and I want to visualize the surface in Matlab.
I've been able to patch the geometry using solid colors, meaning I can see my meshes with patch. Additionally, I have my cdata saved as a Nx3 matrix, where N is the number of vertices.
My problem is this, again viewing the mesh as a solid surface is easy, but when I try to apply cdata on the edges using:
set(p,'FaceColor','interp',...
'FaceVertexCData',cdata,...
'EdgeColor','interp',...
'LineWidth',2)
I get the following error:
Warning: Color Data is not set for Interpolated shading
Any ideas?
EDIT: so let me give a little more information.
my xco, yco and zco matrices are 3xM each, where M is the number of faces. In my case, I have 23054 faces, and I have 21964 vertices. My cdata is therefore 21964x3, since each vertex has a RGB transfer function.

回答 (0 件)

カテゴリ

Help Center および File ExchangePolygons についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by