Constructing a cylinder from its net