build_slice_polydata#
- build_slice_polydata(d1, d2, d3, axis, frame=None)[source]#
Build a quad-faced
pyvista.PolyDatasurface patch from coordinate arrays.The coordinate arrays are moved so that
axisis the leading dimension, then reshaped to(S, M, N)whereSis the number of independent surface patches, andM × Nis the grid resolution of each patch. Quads are constructed for all(M-1) × (N-1)interior cells of each patch.- Parameters:
- d1, d2, d3
np.ndarray Coordinate arrays for the three spatial dimensions. All arrays must have the same shape.
- axis
int The “batch” axis that enumerates independent surface patches (moved to the leading dimension).
- frame
MeshFramesType|None, optional Coordinate frame label written to
result.user_dict['MESH_FRAME']. Default isNone.
- d1, d2, d3
- Returns:
- out
pyvista.PolyData A quad-faced polydata surface.
- out