(*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=21;
zscale=7;
radius=2;

helixR1[t_]={xyscale*Cos[t],xyscale*Sin[t],zscale*t};
helixR2[t_]={xyscale*Cos[t],xyscale*Sin[t],zscale*(t+Pi)};

helixL[t_]={xyscale*Cos[t],-xyscale*Sin[t],zscale*t};

numPoints=24;
tmin=0;
tmax=3*2*Pi;

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

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


Show[tubesR1,tubesL]
Show[tubesR1,tubesR2]

(*Export["HelixRight.stl",tubesR1]*)
(*Export["HelixLeft.stl",tubesL]*)