pyvista.PolyData.n_strips#
- property PolyData.n_strips: int[ソース]#
Return the number of triangle strips.
This is the total number of
TRIANGLE_STRIPcells defined in thestripsconnectivity array.参考
stripsn_verts,n_lines,n_faces_strictNumber of cells in other connectivity arrays.
pyvista.DataSet.n_cells,pyvista.DataSet.n_pointsNumber of total cells and points in this mesh.
例
1つの3角形の帯で単純なメッシュを作成し,3角形の数を返します.
>>> import pyvista as pv >>> import numpy as np >>> vertices = np.array([[1.0, 0.0, 0.0], [1.0, 1.0, 1.0], [1.0, 1.0, 1.0]]) >>> strip = np.array([3, 0, 1, 2]) >>> mesh = pv.PolyData(vertices, strips=strip) >>> mesh.n_strips, mesh.n_cells (1, 1)