フィルターのクリア

STL Repair within Matlab (non-manifold edges, degenerate faces,..)

37 ビュー (過去 30 日間)
Claud
Claud 2023 年 6 月 14 日
回答済み: Aditya 2023 年 8 月 23 日
Hi everyone,
Is there an available library or function to repair a .stl file within MATLAB (or call an external tool from Matlab)?
There is this website that does exactly what I need to do ( https://www.formware.co/onlinestlrepair ) in terms of repair but I would need to automate the process from within the Matlab environment. Unfortunately meshlab does not seem to be linkable with Matlab anymore. When I say cleaning/repairing a .stl I primaraly (but not limited to) mean: naked edges, planar holes, non-planar holes, non-manifold edges, inverted faces, degenerate faces, duplicate faces, disjoint shells.
If no libraries/functions are available, would you have any advice on how to create a script that could tackle the problem?
Many thanks

採用された回答

Aditya
Aditya 2023 年 8 月 23 日
Hey Claud,
In MATLAB, there isn't a built-in function or library specifically designed to repair .stl files. However, you can use external tools or libraries by calling them from MATLAB to repair .stl files. As meshlab was not working here is another alternative.
Python libraries: MATLAB supports calling Python functions and libraries using the Python integration feature. You can use Python libraries such as `trimesh` or `pyvista` to repair .stl files. Write a Python script that performs the repair operation and call it from MATLAB using the `py` function.
output = py.python_script.repair_stl('input.stl');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall MATLAB from Python についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by