STL file from 3D array

6 visualizzazioni (ultimi 30 giorni)
Oguzhan M
Oguzhan M il 13 Dic 2018
Modificato: DGM il 15 Lug 2025
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

Risposte (1)

madhan ravi
madhan ravi il 13 Dic 2018
  2 Commenti
Oguzhan M
Oguzhan M il 14 Dic 2018
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 il 15 Lug 2025
Modificato: DGM il 15 Lug 2025
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:

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by