algorithmic modeling for Rhino
Here's an example c# script that shows how to create a group:
private void RunScript(List<GeometryBase> x, object y, ref object A)
{
GH_GeometryGroup grp = new GH_GeometryGroup();
var goos = x.Select(m => GH_Convert.ToGeometricGoo(m));
grp.Objects.AddRange(goos);
A = grp;
}
To "ungroup" just access the geometry group object's "Objects" collection.
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
© 2024 Created by Scott Davidson. Powered by