Patch to Surf Conversion

13 ビュー (過去 30 日間)
Jonathan Bird
Jonathan Bird 2018 年 4 月 23 日
回答済み: DGM 2025 年 10 月 7 日 14:08
We have the following code defining a pair of wings using the patch function. We are trying to convert the .m file to an .stl file however the surf2stl will not work as the wings are not defined using the surf function. Is there any way to resolve this? Thanks.
figure(1)
v = [0 -15 60; 0 -15 57; 75 -10 60; 75 -10 57; 78 5 60; 78 5 57; 0 0 60 ; 0 0 57; -78 5 60; -78 5 57; -75 -10 60; -75 -10 57];
f = [1 2 4 3; 3 4 6 5; 5 6 8 7; 7 8 10 9; 9 10 12 11; 11 12 2 1;7 1 3 5; 9 11 1 7; 2 4 6 8; 2 8 10 12];
wing = patch('Faces',f,'Vertices',v,'FaceAlpha',1,'FaceColor','green');
axis equal

回答 (2 件)

KSSV
KSSV 2018 年 4 月 23 日
  1 件のコメント
DGM
DGM 2025 年 7 月 5 日
After R2018b, MATLAB has STL tools in the base toolbox:
Prior to R2018b, I'd agree with the recommendation of FEX #20922

サインインしてコメントする。


DGM
DGM 2025 年 10 月 7 日 14:08

カテゴリ

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