필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
abu sharique shamshad khan
abu sharique shamshad khan 2021년 8월 20일
댓글: darova 2021년 8월 21일
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);

답변 (1개)

Simon Chan
Simon Chan 2021년 8월 20일
편집: Simon Chan 2021년 8월 20일

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

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by