eradiate.scenes.shapes.ShapeInstance#

class eradiate.scenes.shapes.ShapeInstance(id='shape', bsdf=None)[source]#

Bases: Shape, InstanceSceneElement, ABC

Interface for shapes which have to be expanded as Mitsuba objects.

traverse(callback)#

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.

property bbox#

Shape bounding box. Default implementation raises a NotImplementedError.

Type:

BoundingBox

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.