AlphaShape: incorrect geometry
Show older comments
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 Comments
Sean de Wolski
on 12 Mar 2019
Edited: Sean de Wolski
on 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
on 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
on 12 Mar 2019
Edited: Irene Yang
on 12 Mar 2019
Accepted Answer
More Answers (0)
Categories
Find more on Bounding Regions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!