pyvista.PolyData.is_all_triangles#
- property PolyData.is_all_triangles[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 >>> 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