added side info to projectOnTriangle