How to export a surface plot with RGB color to a format compatible with meshlab?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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)');
Risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!