AlphaShape: incorrect geometry
Ältere Kommentare anzeigen
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 Kommentare
Sean de Wolski
am 12 Mär. 2019
Bearbeitet: Sean de Wolski
am 12 Mär. 2019
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
am 12 Mär. 2019
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
am 12 Mär. 2019
Bearbeitet: Irene Yang
am 12 Mär. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Bounding Regions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!