How to model graphically complex shapes in matlab?

9 ビュー (過去 30 日間)
Inna
Inna 2016 年 9 月 21 日
編集済み: DGM 2025 年 9 月 29 日
Hi, I need to model a complex 3D shape graphically so I could extract the analytical expression that fit the surface of the shape. Is there a way to do the modeling in matlab or I should work with STL files exported from a CAD system?

回答 (1 件)

michio
michio 2016 年 9 月 21 日
I'd suggest that you generate a complex geometry using other CAD tool and exported it to STL if you want to import back to MATLAB. There are ways to create 3D geometry, Computational Geometry , but not sure how easy it is compared to some CAD tools.
Regarding the extracting analytic expression of the geometry surface, that seems to be whole another task. Do you have some expression you want to fit to?
  3 件のコメント
michio
michio 2016 年 9 月 22 日
編集済み: michio 2016 年 9 月 22 日
Suppose you generated a STL file using some CAD tools, then you can try using functions from File Exchange,
I haven't tested all the functions from File Exchange but the one above has a good reputation :)
Usually you can get the vertices, faces, face normals of the geometry from STL files, so 3D coordinates could be extracted.
If you are interested, importGeometry function from PDE Toolbox imports geometry defined by STL files into MATLAB.
DGM
DGM 2025 年 7 月 16 日
編集済み: DGM 2025 年 9 月 29 日
Since R2018b, MATLAB comes with STL tools stlread and stlwrite. If you're running an older version, then I agree with the recommendation of FEX #51200 at the time it was made, but FEX #182013 includes significant improvements over #51200.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by