pyvista.MultiBlock.extend#
- MultiBlock.extend(datasets: Iterable[MultiBlock | DataSet]) None [ソース]#
MultiBlockをIterableで拡張します.
別のMultiBlockオブジェクトが与えられると,キー名は保存されます.
- パラメータ:
- datasets
Iterable
[pyvista.DataSet
orpyvista.MultiBlock
] 拡張するデータセット.
- datasets
例
>>> import pyvista as pv >>> from pyvista import examples >>> data = { ... "cube": pv.Cube(), ... "sphere": pv.Sphere(center=(2, 2, 0)), ... } >>> blocks = pv.MultiBlock(data) >>> blocks_uniform = pv.MultiBlock( ... {"uniform": examples.load_uniform()} ... ) >>> blocks.extend(blocks_uniform) >>> len(blocks) 3 >>> blocks.keys() ['cube', 'sphere', 'uniform']