eradiate.scenes.shapes.Shape¶
- class eradiate.scenes.shapes.Shape(id='shape', bsdf=None, to_world=None)[source]¶
Bases:
objectAbstract interface for all shape scene elements.
- Parameters:
id (
str, optional, default:"shape") – Identifier of the current scene element.bsdf (
BSDForRefordict, optional) – BSDF attached to the shape. If a dictionary is passed, it is interpreted bybsdf_factory.convert(). If unset, no BSDF will be specified during the kernel dictionary generation: the kernel’s default will be used. If aBSDFinstance (or a corresponding dictionary specification) is passed, its id member is automatically overridden.to_world (
mitsuba.ScalarTransform4for array-like, optional) – Transform to scale, shift and rotate the shape.
- Fields:
Notes
This class is to be used as a mixin.
- property bbox¶
Shape bounding box. Default implementation raises a
NotImplementedError.- Type: