Grasshopper

algorithmic modeling for Rhino

I have created a mesh from a surface in Rhino.

I wish to sort the nodes into 2 seperate list. One being the nodes at the edges and the other being internal.

 

Does anyone have a smart GH combo to sort the nodes?

Views: 614

Attachments:

Replies to This Discussion

I actually just added a component to the new version of Kangaroo to do this.

 

It's also achievable with a simple C# script though:

 

private void RunScript(Mesh M, ref object A, ref object B)

 {
    bool[] Naked = M.GetNakedEdgePointStatus();
    List<Point3d> NakedPts = new List<Point3d>();

    List<Point3d> ClothedPts = new List<Point3d>();


    for (int i = 0; i < M.Vertices.Count; i++)

    {

        if (Naked[i])

         {

           NakedPts.Add(M.Vertices[i]);

         }      

         else

         {

           ClothedPts.Add(M.Vertices[i]);

         }

     }


    A = ClothedPts;

    B = NakedPts;


 }

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