Scene.clear
- Scene.clear(clear_scene=True, clear_context=True)[source]
Clear the scene.
- Parameters:
- clear_scenebool, optional
If True, all scene objects will be removed from the scene tree.
- clear_contextbool, optional
If True, all objects drawn by the scene in the visualisation context will be removed.
- Returns:
- None
Notes
To redraw the scene, without modifying any of the other objects in the visualisation context:
>>> scene.clear(clear_scene=False, clear_context=True) >>> scene.draw()