Creating basic triangulation routines.