interpolate points of a .stl file
Show older comments
Hi everyone,
I am new to Matlab,
My question is if it is possible to load a .stl file and after interpolate the points of this file in order to recreate a close surface. I attached two images to describe better the situation: Image 1 represents my imput .stl and i want to interpolate the points in order to obtain the image 2.
Any help would be appreciated.
Thanks.
Lorenzo

IMAGE 1

IMAGE 2
Answers (1)
I understand that you wish to obtain an interpolated form of your 3D figure which is loaded in MATLAB through a stl format. The following steps can be considered to obtain an interpolated version of your model.
- Read the '.stl' file in MATLAB using 'stlread' function.
- Use a 'meshgrid' function to obtain the grid to interpolate.
- Use a function like 'scatteredInterpolant' to interpolate the data points.
- Use 'alphaShape' function if the surface is required to be closed.
The following MATLAB Answer also gives a good explanation:
The following MathWorks documentations can be referred:
'scatteredInterpolant': https://www.mathworks.com/help/matlab/ref/scatteredinterpolant.html
Thanks.
Categories
Find more on STL (STereoLithography) 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!