eradiate.kernel.mi_traverse

Contents

eradiate.kernel.mi_traverse#

eradiate.kernel.mi_traverse(obj, umap_template=None, name_id_override=None)[source]#

Traverse a node of the Mitsuba scene graph and return a container holding the Mitsuba scene, its parameter map and an updated parameter update map.

Parameters:
  • obj (mitsuba.Object) – Mitsuba scene graph node to be traversed.

  • umap_template (UpdateMapTemplate, optional) – An additional update map template which is to be updated during traversal. This is used to perform parameter lookup during traversal.

  • name_id_override (str or list of str, optional) – If set, this argument will be used to select nodes in the scene tree whose names will be “pinned” to their ID. Passed values are used as regular expressions, with all that it implies regarding ID string matching. If this parameter is set to True, a regex that matches anything is used.

Returns:

MitsubaObjectWrapper – A container holding the traversed object, the corresponding parameter map and the parameter update map (if any).

Notes

This is a reimplementation of the mitsuba.traverse() function.