pyvista / pyvista-support

[moved] Please head over to the Discussions tab of the PyVista repository
https://github.com/pyvista/pyvista/discussions
59 stars 4 forks source link

force redraw #490

Closed nschloe closed 2 years ago

nschloe commented 2 years ago

Sometimes when plotting and adjusting the camera, the first render would show nothing:

sc1

Only after I update the camera by clicking and dragging anywhere with the mouse, I see the object:

sc2

Is there any way to force a redraw in software?

akaszynski commented 2 years ago

This is likely due to the camera clipping range not being reset. See pyvista.BasePlotter.reset_camera_clipping_range.

nschloe commented 2 years ago

Indeed, thanks!