How to export a surface plot with RGB color to a format compatible with meshlab?
1 view (last 30 days)
Show older comments
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)');
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots 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!