interpolate points of a .stl file

조회 수: 5 (최근 30일)
Lorenzo Bennati
Lorenzo Bennati 2020년 11월 29일
편집: Rahul 2025년 5월 13일
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

답변 (1개)

Rahul
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.
  • 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:
Thanks.

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by