- class eradiate.scenes.shapes.BufferMeshShape(id='shape', bsdf=None, *, vertices, faces)#
Buffer mesh shape [
This shape represents a triangulated mesh directly defined by lists of vertex positions and faces.
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.
vertices (array-like) – List of vertex coordinates, specified either as a (n, 3) NumPy array or a list of triplets.
Unit-enabled field (default: ucc[‘length’]).
faces (array-like) – List of face definitions. specified either as a (n, 3) NumPy array or a list of triplets of vertex indices.
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.
Write the mesh data to a PLY file.
str) – Path and filename to write the mesh file into. No directories are created.
- property instance#
Mitsuba object which is represented by this scene element.