add baseline triangulation code