4
4
The boy surface is a mathematical parametric surface, see
5
5
http://en.wikipedia.org/wiki/Boy%27s_surface . We display it by sampling
6
6
the two parameters of the surface on a grid and using the mlab's mesh
11
11
# Copyright (c) 2007, Enthought, Inc.
15
from numpy import sin, cos, mgrid, pi, sqrt
15
from numpy import sin, cos, mgrid, pi, sqrt
18
18
mlab.figure(fgcolor=(0, 0, 0), bgcolor=(1, 1, 1))
19
19
u, v = mgrid[-0.035:pi:0.01, -0.035:pi:0.01]
22
22
+ sqrt(2)* sin(u)* cos(v))* cos(u) / (sqrt(2) - sin(2*u)* sin(3*v))
23
23
Y = 2/3.* (cos(u)* sin(2*v) - sqrt(2)* sin(u)* sin(v))* cos(u) / (sqrt(2)