AlphaShape: incorrect geometry
古いコメントを表示
Hi,
I have a 3D CAD file which I am importing into Matlab via stlread.
I then use alphaShape using the points generated from stlread of the geometry. However, the alphaShape is not accurate to my geometry and adds a whole bunch of triangles that do not match my geometry.
This is what it is supposed to be:

However, this is what I get instead:

How can I fix this? Does anyone have an idea on how I could possibly go in and edit the triangulation (is this even feasible?)? Or alternatively, another function in matlab that can allow me the same thing as alphaShape? Should I edit the mesh further? I have tried everything that I can think of!
Thanks.
4 件のコメント
Sean de Wolski
2019 年 3 月 12 日
編集済み: Sean de Wolski
2019 年 3 月 12 日
What are you trying to do with alphaShape? You already have a triangulation that you get from stlread. alphaShape is a specific algorithm that generates an entirely new triangulation based on alpha and nodes an dtoally discards an existing triangulation. I'm not sure what value it would add here.
Irene Yang
2019 年 3 月 12 日
alphaShape is used to define a surface based on a point cloud. As Sean has written already, you do have a surface already, so there is no need for alphaShape.
But your problem seems to be, that you used inapropriate values for 'RegionThreshold' or 'HoleThreshold' or 'Alpha' radius. Which values did you use? Please post your code.
Irene Yang
2019 年 3 月 12 日
編集済み: Irene Yang
2019 年 3 月 12 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Bounding Regions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!