Hi @piac,
The DivideCurve component returns three strange results, am I doing something wrong?
private void RunScript(ref object A, ref object B, ref object C)
{
Rhino.NodeInCode.ComponentFunctionInfo cfi = Rhino.NodeInCode.Components.FindComponent("DivideCurve");
string[] warnings;
object[] result = cfi.Evaluate(new object[]{new Circle(2), 5, false}, false, out warnings);
Print(result.Length.ToString());
A = result[0];
B = result[1];
C = result[2];
if(warnings != null && warnings.Length > 0){
Array.ForEach(warnings, w => Print(w));
}
}
NodeInCodeDivideCurveIssue.gh (10.2 KB)
Thank you.