Actor.clear_point_sprite_shape#
- Actor.clear_point_sprite_shape() None[source]#
Clear the custom point sprite shape.
Added in version 0.48.
Restores the default square point rendering by removing the fragment shader replacement and stopping the representation observer installed by
set_point_sprite_shape().
Examples#
Download Python source code | Download Jupyter notebook
>>> import numpy as np
>>> import pyvista as pv
>>> cloud = pv.PolyData(np.random.default_rng(0).random((100, 3)))
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(cloud, style='points', point_size=20)
>>> actor.set_point_sprite_shape('circle')
>>> actor.clear_point_sprite_shape()