How to export a surface plot with RGB color to a format compatible with meshlab?
1 次查看(过去 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!