A numerical solution to the generalized mapmaker's problem: flattening nonconvex polyhedral surfaces | Synapse