home *** CD-ROM | disk | FTP | other *** search
- {
- hyper.cal: Create a hyperboloid ( x^2/a^2 + y^2/b^2 - z^2/c^2 = 1)
-
- igensurf -v -s 10 -t 30 -S 100 hyper.cal | writetddd >hyper.obj
- }
-
- #name hyperboloid
-
- x_scale : 1.0; { Scale factor for the x axis }
- y_scale : 1.0; { Scale factor for the y axis }
- z_scale : 1.0; { Scale factor for the z axis }
-
- x(s,t) = x_scale * (cos(2*PI*s) - v(t) * sin(2*PI*s));
- y(s,t) = y_scale * (sin(2*PI*s) + v(t) * cos(2*PI*s));
- z(s,t) = z_scale * v(t);
-
- v(t) = 10 * 2 * (t - .5);
-