pyvista.PolyData.n_faces_strict#
- property PolyData.n_faces_strict: int[ソース]#
多角形の面の数を返します.
This is the total number of
TRIANGLE,QUAD, andPOLYGONcells defined in thefacesconnectivity array.参考
facesn_verts,n_lines,n_stripsNumber of cells in other connectivity arrays.
pyvista.DataSet.n_cells,pyvista.DataSet.n_pointsNumber of total cells and points in this mesh.
例
1つの面と1つの線でメッシュを作成します
>>> import pyvista as pv >>> mesh = pv.PolyData( ... [(0.0, 0, 0), (1, 0, 0), (0, 1, 0)], ... faces=[3, 0, 1, 2], ... lines=[2, 0, 1], ... ) >>> mesh.n_cells, mesh.n_faces_strict, mesh.n_lines (2, 1, 1)