generative modeling for Rhino
Can you give me an example code of Rhino.Geometry.SweepOneRail class?
I can figure out What the paramments means in the function of "Rhino.Geometry.SweepOneRail.PerformSweepRefit". Hope you can give a simple code to show how to use this function. Thank you, I will be very appreciate for it.
Tags:

http://wiki.mcneel.com/developer/rhinocommonsamples/sweep1
If you are using Rhino 5, then I would highly recommend trying the Brep.CreateFromSweep function. This function is a simplified version of Sweep1 which seems to work better in many cases.
Thanks,
-Steve
Permalink Reply by huaxiamengqing on June 12, 2012 at 10:58pm Thank you very much , Can you give me an example used in GH for VB?

A = Brep.CreateFromSweep(railCurve, sweepCurves, railCurve.IsClosed, 0.01)
where railCurve is a single curve and sweepCurves can be either a single curve or a collection of curves. You can use a different value for closed if you want and you can also use a different overload of CreateFromSweep() if you want to use two railcurves.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Permalink Reply by huaxiamengqing on July 5, 2012 at 9:57am can you give me a ghx file.Thank you. I am so busy this days that I have no time to surf the net.
Added by David Stasiuk 8 Comments 22 Likes
Added by stefano 5 Comments 7 Likes
© 2013 Created by Scott Davidson.
Powered by