eradiate.scenes.shapes.Shape#
- class eradiate.scenes.shapes.Shape(id='shape', bsdf=None, to_world=None)[source]#
Bases:
object
Abstract interface for all shape scene elements.
- Parameters:
id (
str
, optional, default:"shape"
) – Identifier of the current scene element.bsdf (
BSDF
orRef
ordict
, 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 aBSDF
instance (or a corresponding dictionary specification) is passed, its id member is automatically overridden.to_world (
mitsuba.ScalarTransform4f
or 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: