How to export a surface plot with RGB color to a format compatible with meshlab?

3 ビュー (過去 30 日間)
jno navarro
jno navarro 2012 年 7 月 15 日
コメント済み: DGM 2025 年 10 月 9 日 12:57
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 ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by