Rail Revolve with Python

Hello,

I am somewhat new to python scripting and RHINO, so hopefully this is an easy question. (or at least that I am able to explain it well.

I can do a rail revolve manually (via GUI) and it looks fine, but then when trying to use python scripting:
Rhino.Geometry.NurbsSurface.CreateRailRevolvedSurface(combo_curve, ProjectedCurves1 , axis_revolve ,1.0)

I get a very distorted output. Any advice on what to do?

My best guess is I am using the wrong RailRevolve? Is there another one because combo_curve is the combination of a NURBS curve and a arc appended into a polycurve. I just couldn’t find another place for a rail_revolve.

thank you,
v/r,
Michael

My issue appears to have been solved by altering the scaling factor variable to 0.0

Sorry I try not to post unless I really hit a brick wall but that one took me quite a while, sadly.

New line of Code:
Rhino.Geometry.NurbsSurface.CreateRailRevolvedSurface(combo_curve, ProjectedCurves1 , axis_revolve ,0.0)

Hi Michael,

The scaleHeight parameter is a Boolean, not a double.

http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_NurbsSurface_CreateRailRevolvedSurface.htm

– Dale

Thanks for that correction Dale!