Avoid floating point sensitivity in trisurf3d test

Recent changes to triangulation exposed floating point sensitivity in the trisurf3d test. Implementing a change suggested by @ianthomas23.