(*This Mathematica code was written by John Zweck (zweck@utdallas.edu) and generates a mathematical curve/surface that can be printed using a 3D printer. This model can (probably) be printed by Shapeways.*)

(*If you evaluate this Mathematica notebook,the curve/surface will be rendered using computer graphics.*)

(*If you uncomment the export line at the end of the code and set the directory path appropriately for your system you will obtain an STL file that can be sent to a 3D printer.*)

(*The STL file can also be viewed using the open source software Meshlab.*)

(*You may modify this code in any way you like.*)

(*This project was supported by the National Science Foundation through a Supplement to the UTeach Dallas Robert Noyce Scholarship Program (DUE 1544159).*)

xyscale=1;
zscale=1;
radius=0.1;
SurfaceThickness = 0.05;

IntersectionCurve[t_]={t,1-t,t^2+(1-t)^2};

numPoints=24;

tubesR1=ParametricPlot3D[IntersectionCurve[i],{i,tmin,tmax},PlotStyle->{Tube[radius],Red},PlotPoints->numPoints,PlotRange->All];

Paraboloid = ParametricPlot3D[{xyscale*v*Cos[u],xyscale*v*Sin[u],zscale*v^2},
{u,0, 2*Pi},{v,0,1},
Mesh->False, MaxRecursion->4,  PlotStyle->{Thickness[SurfaceThickness],Blue}];

MyPlane = ParametricPlot3D[{xyscale*u,1-u,zscale*v},
{u,0, 1},{v,0,1},
Mesh->False, MaxRecursion->4,  PlotStyle->{Thickness[SurfaceThickness],Green}];


output1=Show[tubesR1,Paraboloid, MyPlane]


(*Export["./HelixCylinderWave.pdf",output1]
Export[".//HelixTwoWaves.pdf",output2]*)