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 Center および File ExchangeSTL (STereoLithography) についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by