TriangleQualityCalculator implementation
added catch to prevent crash in printf()