TriangleTracing almost library (indices needs fixing)