Grasshopper

algorithmic modeling for Rhino

As shown in the picture, what should I do?

M1.gh

Views: 734

Attachments:

Replies to This Discussion

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! 

Attachments:

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.

I can not find them :

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service