Import STL file and convert to Matrix

조회 수: 6 (최근 30일)
Marvin Rohatsch
Marvin Rohatsch 2021년 9월 2일
댓글: DGM 2025년 7월 13일
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!

답변 (2개)

Jan
Jan 2021년 9월 2일
  댓글 수: 1
Marvin Rohatsch
Marvin Rohatsch 2021년 9월 5일
I tried it, but i'm not able to use the matrix. I can only plot it ...

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


darova
darova 2021년 9월 5일
Try stlread to import geometry
Use griddata to interpolate data
  댓글 수: 2
Thomas Tsigkopoulos
Thomas Tsigkopoulos 2021년 11월 19일
stlread doesn't work anymore
DGM
DGM 2025년 7월 13일
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.

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

카테고리

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

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by