Conditional Statements in a Curve by Equation w Cylindrical Coordinates
Ok this should be simple, problem I am working is way more complex...
I would like to use IF / conditional statements to revolve an equation driven curve that is utilizing a cylindrical coordinate system. I CAN NOT get it to work.
Example:
Create a coordinate system to revolve around
Create a Datum / Curve / From Equation <dialog opens>
Change to Cylindrical / Pick the Reference Coordinate / Equation <now in a relation editor>
Eqns:
z=0
theta = 360*t
r=2*t
No problem, you get a linearly increase radius curve that starts at R=0 and grows to R=2 thru 360°
Now I would like to create a curve that starts at 0 goes to 180° increasing in radius from 0 to 1, then continue on at a constant radius of 1 from 180° to 360°. I do believe the equation would be as simple as below, but, it does not work, just get a failed curve feature.
z=0
theta=360*t
IF theta<180
r=2*t
ELSE
r=1
ENDIF
Is this due to the sudden change in the curvature?.
I can work around by making many curves each from their own start/finsh but, would rather just run it through one equation with multiple changes in the relationship of radius to the t value.
Thanks,
Erik

