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?
Tags:
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;
}
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