generative 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 ;)
Permalink Reply by Thibault SCHWARTZ on February 26, 2012 at 5:54am Rhino.Geometry.Curve.JoinCurves(AllYourCurvesAsArray, Tolerance, TellIfYouWantToPreserveDirection)
Permalink Reply by Sven Nevlida on February 26, 2012 at 10:49am thanks a lot ;)
Permalink Reply by Sven Nevlida on February 26, 2012 at 11:07am I have just realized, that is not that clear yet - where is the result stored?
Permalink Reply by Thibault SCHWARTZ on February 26, 2012 at 11:11am 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
Permalink Reply by Sven Nevlida on February 26, 2012 at 11:15am ok, I've been trying to set the result to a curve variable... again thanks
Permalink Reply by Sven Nevlida on February 26, 2012 at 12:27pm
Permalink Reply by Thibault SCHWARTZ on February 26, 2012 at 12:34pm You are adding a list to a list, so you have to use addrange, and not add line 135.
Permalink Reply by Sven Nevlida on February 26, 2012 at 12:48pm but the problem seems to be on the line 134 - it says that "tolist" is not a member of System.Array.
Permalink Reply by Thibault SCHWARTZ on February 26, 2012 at 12:53pm Ah, so use
MyJoinedCurves.addrange(Rhino.Geometry.Curve.JoinCurves(AllYourCurvesAsArray, Tolerance, TellIfYouWantToPreserveDirection))
Permalink Reply by Sven Nevlida on February 26, 2012 at 5:27pm so it worked ;) thx
© 2013 Created by Scott Davidson.
Powered by