Unfortunately the curve I’m trying to revolve isn’t suited to be converted to a polyline, since the line segments aren’t straight. So I do in fact have to revolve the NURBS curve. Should’nt the Create(Curve, Line, Double, Double) be able to do exactly this?
Edit: I do realize that there is a difference between the NurbsCurve and the Curve method and that perhaps this is where it all goes wrong, but could I then convert my nurbs curve to curve?
This seems to be true. For example my case is the third one. However, I am not able to use a Line for my axis. It returns an error stating expected Vector3d, got Line.
What you’re currently missing is the fact that I’m not using either a line curve or a polyline curve. I’m trying to use a NURBS Curve. This should be possible according to the documentation, but it is not.
I’ve created a workaround using SweepOneRail though:
Here O() is the Point3d of the origin and N determines the arc length (N=1 would result in a full rotation). N is specific to my problem, but you could just as well derive your own rotation in radians.
This does work but it still uses an arc as the basis for the curve to be revolved. I haven’t been able to for example select a NURBS curve from the workspace and then revolve that curve.