triangle IO functions added to mesh, however not working