pyvista.plotting.volume.Volume.mapper#

property Volume.mapper: _BaseMapper[ソース]#

ボリュームのマッパーを返すか設定します.

pyvista.Plotter にボリュームを追加し,そのマッパーを返します.

>>> import pyvista as pv
>>> vol = pv.ImageData(dimensions=(10, 10, 10))
>>> vol['scalars'] = 255 - vol.z * 25
>>> pl = pv.Plotter()
>>> actor = pl.add_volume(vol)
>>> actor.mapper.bounds
(0.0, 9.0, 0.0, 9.0, 0.0, 9.0)
../../../_images/pyvista-plotting-volume-Volume-mapper-1_00_00.png