Initial version of triangulation method.