AlphaShape: incorrect geometry
Mostra commenti meno recenti
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 Commenti
Sean de Wolski
il 12 Mar 2019
Modificato: Sean de Wolski
il 12 Mar 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
il 12 Mar 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
il 12 Mar 2019
Modificato: Irene Yang
il 12 Mar 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Bounding Regions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!