Grasshopper

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.

Views: 109

Reply to This

Replies to This Discussion

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

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

can you give me a ghx file.Thank you. I am so busy this days that I have no time to surf the net.

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service