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 commentaires

What's the necessity to meshgrid and surf? You can surf the stl data itself.
Faez Alkadi
Faez Alkadi le 11 Sep 2017
Modifié(e) : Faez Alkadi le 11 Sep 2017
because I want the surface grid data. with a specific grid size. hope you can let me know if this is possible without meshgrid.

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 11 Sep 2017
You can interpolate to your desired resolution/ grid size using griddata or scatteredinterpolant

3 commentaires

Faez Alkadi
Faez Alkadi le 11 Sep 2017
Modifié(e) : Faez Alkadi le 26 Sep 2017
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....
Faez Alkadi
Faez Alkadi le 12 Sep 2017
Modifié(e) : Faez Alkadi le 12 Sep 2017
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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by