pyvista.PolyData.regular_faces#
- property PolyData.regular_faces: NumpyArray[int][ソース]#
すべての面が同じ大きさである場合,点のインデックスの面配列を返します.
- 戻り値:
numpy.ndarray形状(n_faces, face_size)を持つ面インデックスの配列.
備考
This property does not validate that the mesh's faces are all actually the same size. If they're not, this property may either raise a ValueError or silently return an incorrect array.
例
セルを2x2に配列した平面の正方形の面を,4x4の配列として取得します.
>>> import pyvista as pv >>> plane = pv.Plane(i_resolution=2, j_resolution=2) >>> plane.regular_faces array([[0, 1, 4, 3], [1, 2, 5, 4], [3, 4, 7, 6], [4, 5, 8, 7]])