eradiate.scenes.shapes.Shape

Contents

eradiate.scenes.shapes.Shape#

class eradiate.scenes.shapes.Shape(id='shape', bsdf=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 or Ref or dict, optional) – BSDF attached to the shape. If a dictionary is passed, it is interpreted by bsdf_factory.convert(). If unset, no BSDF will be specified during the kernel dictionary generation: the kernel’s default will be used. If a BSDF instance (or a corresponding dictionary specification) is passed, its id member is automatically overridden.

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

  • bsdf (BSDF or Ref or None) – BSDF attached to the shape.

Notes

  • This class is to be used as a mixin.

property bbox#

Shape bounding box. Default implementation raises a NotImplementedError.

Type:

BoundingBox