A characterization of compact convex polyhedra in hyperbolic 3-space