algorithmic modeling for Rhino
Hi guyz,
is there anyone who knows how to join two curves that have already one mutual point (simple enough, huh?)?
I would suppose, that there is some command like curve.join(secondcurve)
or RhUtil.RhinoJoin(curve, secondcurve)...
Please let me know ;)
Tags:
Rhino.Geometry.Curve.JoinCurves(AllYourCurvesAsArray, Tolerance, TellIfYouWantToPreserveDirection)
thanks a lot ;)
I have just realized, that is not that clear yet - where is the result stored?
You just have to set the result to an array or an existing list.
Dim MyJoinedCurves as New List (of Rhino.geometry.curve)
MyJoinedCurves = Rhino.Geometry.Curve.JoinCurves(AllYourCurvesAsArray, Tolerance, TellIfYouWantToPreserveDirection).tolist
ok, I've been trying to set the result to a curve variable... again thanks
You are adding a list to a list, so you have to use addrange, and not add line 135.
but the problem seems to be on the line 134 - it says that "tolist" is not a member of System.Array.
Ah, so use
MyJoinedCurves.addrange(Rhino.Geometry.Curve.JoinCurves(AllYourCurvesAsArray, Tolerance, TellIfYouWantToPreserveDirection))
so it worked ;) thx
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