pygfx.materials.VolumeSliceMaterial
- class pygfx.materials.VolumeSliceMaterial(plane=(0, 0, 1, 0), **kwargs)
Bases:
VolumeBasicMaterial
A material for rendering a slice through a 3D texture at the surface of a mesh. This material is not affected by lights.
- property plane
The plane to slice at, represented with 4 floats
(a, b, c, d)
, which make up the equation:ax + by + cz + d = 0
The plane definition applies to the world space (of the scene).