Project the triangle pair into 2d coords before measuring. before/after - http://www.graphicall.org/ftp/ideasman42/beauty_fill_fix.png note: I committed this r54403 but it caused eternal looping so I reverted for 2.66 release. ran extensive tests and its not giving problems so re-applying this improvement.