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 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