/** * */ private void outputTriangleHeights( Point2f p0, Point2f p1, Point2f p2, int level ) { Point2f midPoint = calcMidPoint( p1, p2 ); if ( level > 0 ) { double mtHeight = ( p0.distance( midPoint ) ); double sampleDist = mtHeight / rowsPerFragment; System.out.println( "At level " + level + " each macro triangle will have a height of: " + mtHeight + " meters. Distance between used heixels: " + sampleDist + " meters" ); outputTriangleHeights( midPoint, p0, p1, level - 1 ); } }
private float estimateError( Point2f p0, Point2f p1, Point2f p2 ) { // ms: TODO implement a real error calculation Point2f midPoint = calcMidPoint( p1, p2 ); float dist = p0.distance( midPoint ); float heixelDist = dist / getRowsPerFragment(); return heixelDist; }