Partially flat ideal triangulations of cusped hyperbolic 3-manifolds