algorithmic modeling for Rhino
Your question doesn't provide a lot of information, so I don't know if there are other meshes that you want this routine to work for - but the attached will extract the corners you've highlighted from the mesh you supplied. The logic follows two basic steps: first, weld the mesh by some angle and isolate the vertices along the unwelded edges (edges sharper than the threshold angle). Second, extract the vertices which only have one near neighbor (comparing to the sum of the distance to the 2 closest other vertices). There may well be other ways to accomplish this - with C# it would be possible to be more precise, extracting naked vertices along unwelded edges - but the attached does the job with all native components.
If what you really want is a rebuilt mesh that is simpler, you could apply a second approach, that's a little bit "brute force" but will achieve the desired result. You'll need a c# script to convert all mesh faces to polysurfaces (this could be achieved with native components but would take a lot of components), apply "merge faces," and then convert it back to a mesh with the "simple mesh" component.
Hope this helps!
My intention is to convert the mesh into planar surface, but did not find a good way, so I want to draw a lines and then generate planar surface is obtained after a few vertices.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by