Hey everyone!
Curve.DivideBy… is not suggesting in grasshopper C# component!
Even there’s no suggestion after Curve.Di… !
Anyone experiencing the same problem? Or anyone can help me fix this?
Thanks a lot
Mehrzad
Hey everyone!
Curve.DivideBy… is not suggesting in grasshopper C# component!
Even there’s no suggestion after Curve.Di… !
Anyone experiencing the same problem? Or anyone can help me fix this?
Thanks a lot
Mehrzad
Divisions are not Static methods in Curve Class.
private void RunScript(Curve inputCrv, double iLength, int iCount, string iDivideBy, ref object A)
{
List<Point3d> divisionPts = new List<Point3d>();
Point3d[] divPts;
if(iDivideBy == "Count")
{
inputCrv.DivideByCount(iCount, true, out divPts);
divisionPts.AddRange(divPts);
}
else if(iDivideBy == "Length")
{
inputCrv.DivideByLength(iLength, false, out divPts);
divisionPts.AddRange(divPts);
}
A = divisionPts;
}
Thanks
It’s working perfectly!