algorithmic modeling for Rhino
Culling is not a Rhino operation. Basically it means removing items from a list in Grasshopper. If your C# component takes in a list of curves, then it would look a bit like this:
void RunScript(List<Curve> curves, ref object culled)
{
List<Curve> longCurves = new List<Curve>();
foreach (Curve curve in curves)
if (curve.GetLength() >= 20)
longCurves.Add(curve);
culled = longCurves;
}
Thanks David! Works perfectly!
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by