Get regular grid and points of a given stl file
Mostrar comentarios más antiguos
Hello,
I have have a stl file, which has many points (ca. ten thousand) but they are not uniformly distributed. As you know, a stl object has Faces, Vertices and Normals. The Vertices are the points (they can be repeated a few times, depending on how many triangles you can form with them).
I would like to create points in between the vertices (I don't care if I lose these initial points) so that they are evenly distributed. Imagine I project the object (just the points) in a 2D plane. I would like the points to be regularly distributed (like a grid but without the lines).
4 comentarios
KSSV
el 14 de Ag. de 2020
But why?
Diego Hens
el 17 de Ag. de 2020
KSSV
el 17 de Ag. de 2020
Any pictorial example?
Diego Hens
el 17 de Ag. de 2020
Respuesta aceptada
Más respuestas (1)
Diego Hens
el 17 de Ag. de 2020
0 votos
7 comentarios
Bruno Luong
el 17 de Ag. de 2020
If you upload one of your typical STL file I might take a look.
Diego Hens
el 17 de Ag. de 2020
Bruno Luong
el 17 de Ag. de 2020
Editada: Bruno Luong
el 17 de Ag. de 2020
I take a quick look of your object; it doesn't seem one can represents such object as a 2D function z=f(x,y), so nothing like the triangle you have illustrated.
So sorry it's not clear to me what you want to do with projection and resampling.
Diego Hens
el 18 de Ag. de 2020
Bruno Luong
el 18 de Ag. de 2020
Have you tried
scatteredInterpolant
Diego Hens
el 18 de Ag. de 2020
Bruno Luong
el 18 de Ag. de 2020
The difficult part is you need to filter the points and keep only the point on the cap of the tooth. Because - as I said - your data is not of the form z=f(x,y) and there are multiple z for the same (x,y) (close to the boundary if one looks from the above). This will polute the interpolation.
Categorías
Más información sobre STL (STereoLithography) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


