In this tutorial we want to construct Hopf cylinders and Hopf tori. These are flat surfaces in and allow for an easy conformal parametrization when mapped to Euclidean 3-space by stereographic projection. For tori we will encounter a problem similar to the problem we saw for framed curves – there is a certain angle defect. Adjusting the immersion destroys the conformality, but we can ask for a minimal distortion.
The 3-sphere admits a fibration into circles, i.e. there is a map such that for each point there is a neighborhood such that its preimage looks like the product :In particular, for each point the fiber is just a circle.
Let us consider the 3-sphere to sit in , i.e. . As usual we identify with the purely imaginary quaternions. The 2-sphere is then just intersection of with , , and the Hopf fibration is given byIn other words, it sends a quaternion to the point it rotates the vector to. In particular it is clear that the image is the whole 2-sphere. Similarly, the preimage of a point consists of all rotations that rotate to the point . Certainly there are many such – e.g. we can precompose any rotation around . One can check that these are in fact all: For , where . In particular the fibers are great circles in .
Just to note here, forms group (multiplication is inherited from the multiplication in ), which contains as a subgroup. The corresponding group action maps the fibers of onto itself.
Further we will need that the differential preserves the product and in particular the length of tangent vectors which are perpendicular to the fibers: Suppose that is a curve in the fiber over a point , i.e. for all with . Then is of the form where is some real-valued function with . Taking the derivative at yields

Since was arbitrary, we see that the vertical space at a point , i.e. the tangent space of the fiber at is given as followsThe horizontal space is then defined to be the orthogonal complement of :Note that, since we are speaking about tangent vectors to the 3-sphere at the point , must be perpendicular to as well.
Theorem 1. The restriction of differential to preserves the metric (up to a factor of ): For all ,
Proof. First, we compute the differential of : For each tangent vector there is a curve such that and . With the usual product rule we get Now we proceed in two steps: First we look at the differential at . Then we have if and only if . In particular, such anti-commute with . Note also that . Thus we for that Now, let be an arbitrary point on and . Then again there is a curve such that and . Now, define or, equivalently, . Then is a curve on through the point . Hence . Now,Hence we obtainFurther, we have . In particular . Thus we obtainBut multiplication by quaternions of unit length are isometries of : If and , then The last to statements together prove the claim.
Now, if with , then the preimage of is a family of great circles in , i.e. a cylinder. This cylinder can be parametrized as follows: Given a lift of , i.e. a curve such that , then a parametrization is given byCertainly, there are many possibilities to lift : It is not hard to see that any other lift of is of the form where . This then defines another parametrization, say . Our goal is to end up with an isometric immersion, i.e. we want Let us compute the derivative of with respect to :Thus by constrution, we always have that . The derivative with respect to is basically given by the derivative of the lift :Hence we see that if and only if . Such a lift is called a horizontal lift. Now, let be a horizontal lift. Then, with the Theorem 1, we get:This then can be fixed by changing the parameter . We collect the facts in the following
Theorem 2. Let such that and let be a horizontal lift to the 3-sphere. Then the mapis an isometric parametrization of the Hopf cylinder defined by .
Remark. Suppose that is periodic. Then the preimage forms a torus instead of a cylinder. Assuming that the parameterization in Theorem 2 still yields an isometric immersion. But the immerison does not need to be periodic in : Let us look at the horizontal lift . If denotes the period of , we find thatThus and both are points in the fiber over , thus there is such thatBut there is no reason why should be equal to . If we want to obtain a doubly periodic immersion we must drop that is horizontal. In fact one can do this similarly as for the framed curves: Let such that and let be a horizontal lift of . Then we defineThen is a closed lift of to that will produce an immersion which not isometric but has a constant shear. Since we piked between and it is least shear we can choose – unless we allow for covering several times.
Now let us switch to the discrete setup. Here we start with a discrete curve on the 2-sphere and want to come up with a parametrization of the corresponding Hopf cylinder.

A discrete curve on the 2-sphere is just a finite sequence of points on . In one imagines that these points are connected by straight lines. Though Houdini will visualize these curves also using straight edge segments in it seems natural to imagine that the points of a spherical curve are actually connected by great circles arcs – the shortest paths on the sphere. Unless the edge doesn’t connect antipodal points this will cause no trouble.
The horizontal lift played an important role in the smooth theory. So we should come up with a discrete analogue. One should notice that the horizontal lift along a curve can actually be regarded as a transport from fiber over the start point to the fiber over the end point of the curve: Given a curve and a point in the fiber over , then there is a unique horizontal lift of such that . Then we can define a map as followswhere is the unique horizontal lift such that . This map is called the parallel transport along and has the following nice property.
Theorem 3. If and , then .
Proof. Let be a horizontal lift of such that . Define . Then certainly . Further,which shows that is a horizontal lift ( follows because is a curve in ). Hence we get This proves the claim.
Now in the discrete case we are dealing with curves patched together by great circle arcs. We want to compute the corresponding parallel transport.
Theorem 4. Let such that and be the corresponding great circle arc. Let . Then the unique horizontal lift of such that is given bywhere .
Proof. First we have to check that defines a lift: We have which is rotated around the axis by the angle . Hence . That is clear. We only have to show that is also perpendicular to : Again we can use that the product is invariant under left- and right multiplication with quaternions of unit length. We have Thus is a horizontal lift and clearly .
Corollary 1. Let , and let such that . Then the parallel transport along a the short great circle arc is given by left-multiplication with the quaternion
So everything is easy at the end. Actually there is even a vex-method which, given two vectors and in , returns exactly this number:
dihedral(p,q)
.
Thus we a discrete horizontal lift is easy to obtain: Let be a discrete curve in .
- Choose a vector in the fiber over , i.e. a quaternion of unit length such that . E.g.
dihedral(
),
- Then lift the curve successively:
dihedral(
)
.
From the horizontal lift we then obtain a cylinder as in the smooth case: Just take the discrete lift and define by
To visualize the surface we then use again a suitable stereographic projection.

For tori, as already mentioned, the lift ends up with a certain angle defect which then has to be taken care of: Let be a closed discrete curve. Then we can unroll this curve to a non-closed curve with and compute a horizontal lift – just use the algorithm above. Then there will be some such that Then we obtain a closed discrete lift as follows:Here denotes the discrete arclength and denotes the length of the curve (compare with the post on frames of constant torsion).
Here a generic spherical curve – just generated by a curve node.

Here the corresponding parametrization using a horizontal lift

and the corresponding close-to-conformal parametrization

Just as a remark: If then the grid looks already closed glueing this leads also to tori with certainly lower distortion of conformality though the underlying combinatorial torus – the mesh – is different from the standard one. Though Houdini’s fuse node can glue this. With this one gets in the end a – in a mathematical sense – very natural looking network (‘unroll’ is an ends node, ‘glue’ is a fuse node).

Once we have this we can ask for special curves. In “Hopf tori in ” there is particular example which we can rebuild easily using a numerical trick. The curve it uses is the intersection of a cubical cone with the 2-sphere in : One such cone is given by the equation i.e. it is an implicit surface and we know how we can get these in Houdini. Though in this form its symmetry axis is given by the vector . We want the symmetry axis instead to be aligned with the -axis. In this way we can easily stretch along the z-axis. This yields a whole 1-parameter family of curves all which enclose always an area of but have different lengths.

To change the rotation axis to , we can just precompose a rotation that takes the vector to the axis . The cone is then given as the zero set of the function
To get the intersection with the round sphere we can use the cookie node. It provides the possibility to intersect two meshes (crease). If necessary one can use the join and fuse node to improve the result.

Though it may need sometimes a bit fine tuning the cookie node works quite well – as lone as the meshes are not to fine.

Note: The resample node will move the point of the sphere. If one wants a spherical curve with constant edge length one has to project the result back to . One trick would be to iterate this. This can be done e.g. by a for-loop node.

With this we can produce nice conformal parametrizations. Below a rednering of one of the tori that arise from the intersection of a cubical cone and the 2-sphere.

Homework (due 14/16 June): Write a network that creates a closed curve on and computes a parametrization of the corresponding Hopf torus. It shall be possible to switch between a horizontal and a closed lifts. Further, apply this to the intersection of the cubical cones and the 2-sphere as described above. Insert a parameter that allows to stretch along the symmetry axis.