Import STL file and convert to Matrix

6 visualizaciones (últimos 30 días)
Marvin Rohatsch
Marvin Rohatsch el 2 de Sept. de 2021
Comentada: DGM el 13 de Jul. de 2025
Hello,
I want to measure the Hausdorff-Distance between two STL meshes. Is it possible to import the STL-Data and convert it in matrix where every point has its x,y,z-coordinate?
Thanks!

Respuestas (2)

Jan
Jan el 2 de Sept. de 2021
  1 comentario
Marvin Rohatsch
Marvin Rohatsch el 5 de Sept. de 2021
I tried it, but i'm not able to use the matrix. I can only plot it ...

Iniciar sesión para comentar.


darova
darova el 5 de Sept. de 2021
Try stlread to import geometry
Use griddata to interpolate data
  2 comentarios
Thomas Tsigkopoulos
Thomas Tsigkopoulos el 19 de Nov. de 2021
stlread doesn't work anymore
DGM
DGM el 13 de Jul. de 2025
stlread() does in fact still work, but stlread(), stlread(), stlread(), stlread(), and stlRead() also still work. The problem is that there is the one that's been built into MATLAB since R2018b, and then there are similarly-named tools from the File Exchange that everyone keeps downloading based on ancient advice and random code snippets on the forum.
The various tools don't all have the same functionality, and they don't all return the same type of output data. Either use the tool your code is written for, or write your code to suit the tool you're using.

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by