Handle the case the surface (triangulated polygon) is a nullptr.
Removed some code that output triangulation information.