eradiate.scenes.core.InstanceSceneElement#

class eradiate.scenes.core.InstanceSceneElement(id=None)[source]#

Bases: SceneElement, ABC

Abstract base class for scene elements which represent a node in the Mitsuba scene graph, but can only be expanded to a Mitsuba object.

Parameters:

id (str, optional) – Identifier of the current scene element.

Fields:

id (str or None) – Identifier of the current scene element.

traverse(callback)[source]#

Traverse this scene element and collect kernel dictionary template and parameter update map contributions.

Parameters:

callback (SceneTraversal) – Callback data structure storing the collected data.

update()#

Enforce internal state consistency. This method should be called when fields are modified. It is automatically called as a post-init step.

abstract property instance#

Mitsuba object which is represented by this scene element.

Returns:

mitsuba.Object

property params#
Returns:

dict[str, UpdateParameter] or None – A dictionary mapping parameter paths, consisting of dot-separated strings, to a corresponding update protocol.