powered by
Writes the current scene to a Wavefront OBJ file, with or without materials
write_scene_to_obj(scene, filename, materials = TRUE, fileext = ".obj")
None
A rayvertex scene.
The filename for the OBJ file.
Default TRUE. Whether to write an MTL file to specify the materials for the OBJ.
TRUE
Default ".obj". The file extension to add to the filename.
".obj"
if(run_documentation()) { tmpfile = tempfile(fileext = ".obj") write_scene_to_obj(generate_cornell_mesh(), tmpfile) }
Run the code above in your browser using DataLab