STL file from 3D array

조회 수: 5 (최근 30일)
Oguzhan M
Oguzhan M 2018년 12월 13일
편집: DGM 2025년 7월 15일
Hi everyone,
I've got a 3D array which is a product of 3 matrices ( svds function is used 3DARRAY= U*E*V' ). Now, I need to convert that array into a somewhow CAD or Mesh readable file (like a surface). The best file I can think of STL but I couldnt find a way to convert. Any thoughts?
Best,
Oguzhan

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 13일
  댓글 수: 2
Oguzhan M
Oguzhan M 2018년 12월 14일
Thanks for the answer, but this method, I think, is only for coloumn vectors, which are basically xy or xyz coordinates. In my case, since svds is applied, the array consists of many rows and coloumns (gridded xy and corresponding z which looks sth like 880x1440).
Thanks,
Oguzhan
DGM
DGM 2025년 7월 15일
편집: DGM 2025년 7월 15일
If the data can be plotted with surf(), you can either use surf2stl() from the FEX, or you can use surf(), surf2patch(), and stlwrite(). The first part of this example shows both ways:

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

카테고리

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