A Generalization of the Poincaré Compactification