This package provides fast reading of Wavefront OBJ files with support for
some material properties using the
tinyobjloader C++
library. It is noticeably faster than the pure R readOBJ
implemented in the rgl
package.
Note that the rgl package does provide a writeOBJ
function, whereas this library only focusses on fast reading of OBJ files.
As of readobj v0.4 released in June 2021, tinyobjloader was updated tag v1.0.7; this was after considering and rejecting the 2.0 series where between 2.0 rc3 and rc4 a default diffuse value was added. This update means that the internal structure of more complex meshes has changed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.