Fixed issues with triangulation, now it works nicely