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

12 ビュー (過去 30 日間)
abu sharique shamshad khan
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 Center および File ExchangeSTL (STereoLithography) についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by