pyvista.PolyData.is_all_triangles#

property PolyData.is_all_triangles[source]#

Return if all the faces of the pyvista.PolyData are triangles.

Returns:
bool

True if all the faces of the pyvista.PolyData are triangles and does not contain any vertices or lines.

Examples

Show a mesh from pyvista.Plane() is not composed of all triangles.

>>> import pyvista
>>> plane = pyvista.Plane()
>>> plane.is_all_triangles
False

Show that the mesh from pyvista.Sphere() contains only triangles.

>>> sphere = pyvista.Sphere()
>>> sphere.is_all_triangles
True