Viewer.add

Viewer.add(item, *args, **kwargs)[source]

Add an item to the scene. This is a compatibility function for the old version of the viewer. While compas.scene.Scene.add() is the recommended way to add an item to the scene.

Parameters:
itemcompas.geometry.Geometry, compas.datastructures.Datastructure,

compas_viewer.scene.ViewerSceneObject The item to be added to the scene.

*argslist

Additional arguments for the compas_viewer.scene.ViewerSceneObject.

**kwargsdict

Additional options for the compas_viewer.scene.ViewerSceneObject.

Returns:
compas_viewer.scene.sceneobject.ViewerSceneObject

The scene object.