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
Otherwise (the BSDF for the converted mesh.) –
material (the TriangleMesh's) –
BSDF. (will be converted to Mitsuba Principled) –
- Returns:
A Mitsuba Mesh (with associated BSDF) ready for use in a Mitsuba scene.