pyvista.PolyData.is_all_triangles#
- property PolyData.is_all_triangles: bool[source]#
 Return if all the faces of the
pyvista.PolyDataare triangles.- Returns:
 - bool
 Trueif all the faces of thepyvista.PolyDataare triangles and does not contain any vertices or lines.
Examples
Show a mesh from
pyvista.Plane()is not composed of all triangles.>>> import pyvista as pv >>> plane = pv.Plane() >>> plane.is_all_triangles False
Show that the mesh from
pyvista.Sphere()contains only triangles.>>> sphere = pv.Sphere() >>> sphere.is_all_triangles True