pyvista.StructuredGrid.x#
- property StructuredGrid.x[ソース]#
すべての点のX座標を返します.
- 戻り値:
numpy.ndarray
すべてのX座標のNumpy配列です.
例
>>> import pyvista as pv >>> import numpy as np >>> xrng = np.arange(-10, 10, 1, dtype=np.float32) >>> yrng = np.arange(-10, 10, 2, dtype=np.float32) >>> zrng = np.arange(-10, 10, 5, dtype=np.float32) >>> x, y, z = np.meshgrid(xrng, yrng, zrng, indexing='ij') >>> grid = pv.StructuredGrid(x, y, z) >>> grid.x.shape (20, 10, 4)