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

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

답변 (2개)

Wan Ji
Wan Ji 2021년 8월 19일
편집: Wan Ji 2021년 8월 19일
Use triplot
FV = stlread('Part2.stl');
triplot(FV)
  댓글 수: 1
Wan Ji
Wan Ji 2021년 8월 19일
Or you can use patch
patch('vertices', FV.Points, 'faces', FV.ConnectivityList, ...
'facevertexcdata',FV.Points(:,2),'facecolor','interp','facealpha',0.4 );
colormap(jet)

댓글을 달려면 로그인하십시오.


Simon Chan
Simon Chan 2021년 8월 19일

function trimesh is another option

카테고리

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