How do we find the parametric equation of the best fit surface, to a Meshed surface(.stl file)? Thanks in advance

6 visualizaciones (últimos 30 días)
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.

Respuestas (1)

Rahul
Rahul el 14 de Mayo de 2025
In order to obtain the parametric equation that fits your meshed surface, consider the following:
  • 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.
The following MATLAB Answers give good informatiuon regarding this:
The following MathWorks documentations can be referred:
Thanks.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by