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