Azzera filtri
Azzera filtri

stl file rendering is not working can you help me to solve it?

1 visualizzazione (ultimi 30 giorni)
FV = stlread('sample.stl');
trimesh(FV)
patch(FV,'FaceColor',[10 10 10],'EdgeColor','none','FaceLighting','gouraud','AmbientStrength',15);
% Add a camera light, and tone down the specular highlighting
camlight('headlight');
material('dull');
% Fix the axes scaling, and set a nice view angle
axis('image');
view([-500 500]);
Error using patch
Not enough input arguments.
Error in PART1 (line 3)
patch(FV,'FaceColor',[10 10 10],'EdgeColor','none','FaceLighting','gouraud','AmbientStrength',0.15);

Risposte (1)

Simon Chan
Simon Chan il 20 Ago 2021
Modificato: Simon Chan il 20 Ago 2021

You may need trisurf or triplot (2D) instead of function patch.

Community Treasure Hunt

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

Start Hunting!

Translated by