open3d.visualization.to_mitsuba¶
-
open3d.visualization.
to_mitsuba
(self, name, bsdf=None)¶ Convert Open3D TriangleMesh to Mitsuba Mesh.
Converts an Open3D TriangleMesh to a Mitsuba Mesh which can be used directly in a Mitsbua scene. The TriangleMesh’s material will be converted to a Mitsuba Principled BSDF and assigned to the Mitsuba Mesh. Optionally, the user may provide a Mitsuba BSDF to be used instead of converting the Open3D material.
- Parameters
name (str) – Name for the Mitsuba Mesh. Used by Mitsuba as an identifier
bsdf (default None) – If a Mitsuba BSDF is supplied it will be used as
BSDF for the converted mesh. Otherwise (the) –
TriangleMesh's material (the) –
be converted to Mitsuba Principled BSDF. (will) –
- Returns
A Mitsuba Mesh (with associated BSDF) ready for use in a Mitsuba scene.