pygfx.materials.MeshSliceMaterial
- class pygfx.materials.MeshSliceMaterial(plane=(0, 0, 1, 0), thickness=2.0, **kwargs)
Bases:
MeshAbstractMaterial
Display a mesh slice.
- Parameters:
plane (tuple) – 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).thickness (float) – The thickness of the line to draw the edge of the mesh in screen space (px).
kwargs (Any) – Additional kwargs will be passed to the
base class
.
- 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).
- property thickness
The thickness of the line to draw the edge of the mesh.