How to export a surface plot with RGB color to a format compatible with meshlab?
3 ビュー (過去 30 日間)
古いコメントを表示
The surface would be created like the example:(xsp,yst2 and zsp are matrix with the data from points and they are same size, II3 is an image with the colors of the points)
surface(scalex*xsp,scaley*yst2,...
scalez*zsp,...
'CData',(double(II3)/255),...
'CDataMapping', 'direct', ...
'EdgeColor', 'flat', ...
'FaceColor', 'none', ...
'LineStyle', 'none', ...
'Marker', '.', ...
'MarkerSize', 1, ...
'MarkerFaceColor', 'flat');
hold on
%camlight right;
lighting phong
title('3D Scanning Point Cloud')
axis vis3d
shading flat
view([0,0,1])
axis equal
grid on
xlabel('X axis(m)');
ylabel('Y axis(m)');
zlabel('Z axis(m)');
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!