meshgrid and Surf an IGES and/or STL surface with holes in the middle ?

I have a surface model in IGES and STL formats. the model has domes and holes with different shapes (circles, squares...etc) in the middle. Is there any way I can determine the boundaries of the wholes model and the holes only, and meshgrid and surf the whole surface except the wholes ?
Thank you so much

2 Comments

What's the necessity to meshgrid and surf? You can surf the stl data itself.
because I want the surface grid data. with a specific grid size. hope you can let me know if this is possible without meshgrid.

Sign in to comment.

Answers (1)

You can interpolate to your desired resolution/ grid size using griddata or scatteredinterpolant

3 Comments

I did that before with STL and had this issue as you see in the link:
https://www.mathworks.com/matlabcentral/answers/353948-deformed-surf-using-griddata
So, i figured out i need more dense data to get a nice fit meshgrid and surf. so i used IGES data file instead of STL and got the data attached here. But still i can't get the grid according to the boundary and moreover i can't avoid surfing the whole in the middle.
Attach nodal connectivity data also....
sorry for the late reply, I just don't get notifications on comments. only on answers !!!
Is this what you asking for ?(attached)
And after surfing it, Is it possible to convert the IGES to image so we can use (bwboundaries) to find the boundaries of the whole part and the wholes in it in XY dimensions ?
THANKS FOR THE HELP

Sign in to comment.

Asked:

on 9 Sep 2017

Edited:

on 26 Sep 2017

Community Treasure Hunt

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

Start Hunting!