plot_object

marxs.visualization.x3d.plot_object(obj, display=None, *, scene=None, **kwargs)[source]

Plot any marxs object with using X3D as a backend.

This method will inspect the object that is passed in and select the correct plotting method for its shape. The object is added to the x3d scene specified in the scene.

Parameters

objmarxs.base.MarxsElement

The element that should be plotted.

displaydict of None

Dictionary with display settings. If this is None, obj.display is used. If that is also None then the objects is skipped.

scenemarxs.visualization.x3d.Scene object

A scene that this object is added to. If None, a new scene will be created.

kwargs

All other parameters will be passed on to the individual plotting method.

Returns

scenemarxs.visualization.x3d.Scene object

Scene with object added.