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

7 ビュー (過去 30 日間)
abu sharique shamshad khan
abu sharique shamshad khan 2021 年 8 月 20 日
コメント済み: darova 2021 年 8 月 21 日
FV = stlread('sample.stl');
patch(FV,'FaceColor',[10 10 10],'EdgeColor','none','FaceLighting','gouraud','AmbientStrength',15);
% Add a camera light, and tone down the specular highlighting
% Fix the axes scaling, and set a nice view angle
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);
  1 件のコメント
darova 2021 年 8 月 21 日
Please attach sample file


回答 (1 件)

Simon Chan
Simon Chan 2021 年 8 月 20 日
編集済み: Simon Chan 2021 年 8 月 20 日

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