Constructing a pyramid from its net