- 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.
interpolate points of a .stl file
조회 수: 5 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Rahul
2025년 5월 13일
편집: Rahul
2025년 5월 13일
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.
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!