Save convhull as a stl file

조회 수: 4 (최근 30일)
耀 谷
耀 谷 2022년 2월 23일
댓글: 耀 谷 2022년 2월 23일
clc;
Nf=40;
R=50;
sita=pi*rand(1,Nf);
fai=2*pi*rand(1,Nf);
x=R*(sin(sita).*cos(fai));
y=R*(sin(sita).*sin(fai));
z=R*cos(sita);
XYZ=[x' y' z'];
plot3(x,y,z,'r*')
axis equal
K = convhull(x,y,z);
trisurf(K,x,y,z,'Facecolor','cyan')
I hope to save the convhull I created as an STL file. Please help me. Thank you very much.

채택된 답변

KSSV
KSSV 2022년 2월 23일
  댓글 수: 1
耀 谷
耀 谷 2022년 2월 23일
I used the above function, but it can only be saved as a surface, not as a convex hull

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by