def to_triangulation(self):
    """
    Returns the mesh as a matplotlib.tri.Triangulation instance. (2D only)
    """
    from matplotlib.tri import Triangulation
    conn = self.split("simplices").unstack()
    coords = self.nodes.coords.copy()
    node_map  = pd.Series(data = np.arange(len(coords)), index = coords.index)
    conn = node_map.loc[conn.values.flatten()].values.reshape(*conn.shape)
    return Triangulation(coords.x.values, coords.y.values, conn)
Returns the mesh as a matplotlib.tri.Triangulation instance. (2D only)