def triangulation(self) -> Triangulation:
    'Create triangulation object from all the mesh elements.\n\n        Parameters\n        ----------\n\n        Returns\n        -------\n        Triangulation\n            The `matplotlib` triangulation object create from all\n            the elements of the parent mesh.\n\n        Notes\n        -----\n        Currently only tria3 and quad4 elements are considered.\n        '
    triangles = self.triangles().tolist()
    for quad in self.quads():
        triangles.append([quad[0], quad[1], quad[3]])
        triangles.append([quad[1], quad[2], quad[3]])
    return Triangulation(self.mesh.coord[:, 0], self.mesh.coord[:, 1], triangles)
Create triangulation object from all the mesh elements.

Parameters
----------

Returns
-------
Triangulation
    The `matplotlib` triangulation object create from all
    the elements of the parent mesh.

Notes
-----
Currently only tria3 and quad4 elements are considered.
def triangulation(self) -> Triangulation:
    'Create triangulation object from all the mesh elements.\n\n        Parameters\n        ----------\n\n        Returns\n        -------\n        Triangulation\n            The `matplotlib` triangulation object create from all\n            the elements of the parent mesh.\n\n        Notes\n        -----\n        Currently only tria3 and quad4 elements are considered.\n        '
    triangles = self.triangles().tolist()
    for quad in self.quads():
        triangles.append([quad[0], quad[1], quad[3]])
        triangles.append([quad[1], quad[2], quad[3]])
    return Triangulation(self.mesh.coord[:, 0], self.mesh.coord[:, 1], triangles)