Working implementation of triangle_info.py