I am trying to plot an stl file but it showing error

14 visualizaciones (últimos 30 días)
abu sharique shamshad khan
abu sharique shamshad khan el 19 de Ag. de 2021
Comentada: abu sharique shamshad khan el 19 de Ag. de 2021
FV = stlread('Part2.stl');
disp(FV);
plot(FV);
Error using plot
Data must be numeric, datetime, duration or an array convertible to double.
Error in PART1 (line 3)
plot(FV);

Respuestas (2)

Wan Ji
Wan Ji el 19 de Ag. de 2021
Editada: Wan Ji el 19 de Ag. de 2021
Use triplot
FV = stlread('Part2.stl');
triplot(FV)
  1 comentario
Wan Ji
Wan Ji el 19 de Ag. de 2021
Or you can use patch
patch('vertices', FV.Points, 'faces', FV.ConnectivityList, ...
'facevertexcdata',FV.Points(:,2),'facecolor','interp','facealpha',0.4 );
colormap(jet)

Iniciar sesión para comentar.


Simon Chan
Simon Chan el 19 de Ag. de 2021

function trimesh is another option

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by