- Read the '.stl' file using 'stlread' function.
- Obtain the vertices from the obtained data of mesh elements using the '.Points' property.
- Use the 'fit' function with appropriate 'fitType' and 'fitOptions' based on your meshed surface. This would give you the required parametric equation.
- Another way to do this while vizualising would be to use the 'Curve Fitter App' and import X, Y, Z data from the workspace which is obtained from the mesh.
How do we find the parametric equation of the best fit surface, to a Meshed surface(.stl file)? Thanks in advance
조회 수: 6 (최근 30일)
이전 댓글 표시
I have a .stl file, which has a meshed surface with triangular mesh elements. I need to find the parametric equation of the surface that best approximates(fits) the meshed surface.
댓글 수: 0
답변 (1개)
Rahul
2025년 5월 14일
In order to obtain the parametric equation that fits your meshed surface, consider the following:
The following MATLAB Answers give good informatiuon regarding this:
The following MathWorks documentations can be referred:
'Curve Fitter App': https://www.mathworks.com/help/curvefit/curvefitter-app.html
'FIt Polynomial Models' (Curve Fitter App): https://www.mathworks.com/help/releases/R2025a/curvefit/polynomial.html
Thanks.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!