- class eradiate.scenes.shapes.FileMeshShape(id='shape', bsdf=None, *, filename)#
File based mesh shape [
This shape represents a triangulated mesh defined in a file. The OBJ and PLY formats are supported.
str, optional, default:
"shape") – Identifier of the current scene element.
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
BSDFinstance (or a corresponding dictionary specification) is passed, its id member is automatically overridden.
filename (path-like) – Path to the mesh file.
Vertex coordinates are assumed to be defined in kernel units.
Traverse this scene element and collect kernel dictionary template and parameter update map contributions.
SceneTraversal) – Callback data structure storing the collected data.
Enforce internal state consistency. This method should be called when fields are modified. It is automatically called as a post-init step.
- property objects#
Map of child objects associated with this scene element.
dict– A dictionary mapping object names to a corresponding object to be inserted in the Eradiate scene graph.
- property params#
- property template#
Kernel dictionary template contents associated with this scene element.