pyvista.PolyData.is_all_triangles#
- property PolyData.is_all_triangles: bool[source]#
Return if all the faces of the
pyvista.PolyData
are triangles.- Returns:
- bool
True
if all the faces of thepyvista.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 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