Convert convexhull to stl file

조회 수: 21 (최근 30일)
CHANDRABHAN Singh
CHANDRABHAN Singh 2022년 1월 25일
댓글: CHANDRABHAN Singh 2022년 2월 24일
I have a set of 3d coordiante points. How can i convert the convert the convex hull into stl file.
p = [113.6466 111.8984 112.4205 108.7094 113.4748 111.4158 113.5684 ];
q =[ 17.7346 12.7025 16.5175 18.2938 17.4362 18.4552 16.3848 ];
r = [56.0310 62.7279 56.1565 59.7253 66.1007 65.5010 56.0682 ];
k= convhull(p,q,r);
trisurf(k,p,q,r);

채택된 답변

KSSV
KSSV 2022년 1월 25일
p = [113.6466 111.8984 112.4205 108.7094 113.4748 111.4158 113.5684 ];
q =[ 17.7346 12.7025 16.5175 18.2938 17.4362 18.4552 16.3848 ];
r = [56.0310 62.7279 56.1565 59.7253 66.1007 65.5010 56.0682 ];
k= convhull(p,q,r);
trisurf(k,p,q,r);
tr = triangulation(k,[p' q' r']) ;
stlwrite(TR,'test.stl')
  댓글 수: 3
耀 谷
耀 谷 2022년 2월 23일
Can your code work normally? I was prompted to use fileparts incorrectly when running the code
CHANDRABHAN Singh
CHANDRABHAN Singh 2022년 2월 24일
@耀 谷 Yes. It is running very smooth.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by