Get regular grid and points of a given stl file
Afficher commentaires plus anciens
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 commentaires
KSSV
le 14 Août 2020
But why?
Diego Hens
le 17 Août 2020
KSSV
le 17 Août 2020
Any pictorial example?
Diego Hens
le 17 Août 2020
Réponse acceptée
Plus de réponses (1)
Diego Hens
le 17 Août 2020
0 votes
7 commentaires
Bruno Luong
le 17 Août 2020
If you upload one of your typical STL file I might take a look.
Diego Hens
le 17 Août 2020
Bruno Luong
le 17 Août 2020
Modifié(e) : Bruno Luong
le 17 Août 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
le 18 Août 2020
Bruno Luong
le 18 Août 2020
Have you tried
scatteredInterpolant
Diego Hens
le 18 Août 2020
Bruno Luong
le 18 Août 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.
Catégories
En savoir plus sur STL (STereoLithography) dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


