writeOBJ(con,
pointRadius = 0.005, pointShape = icosahedron3d(),
lineRadius = pointRadius, lineSides = 20,
pointsAsPoints = FALSE, linesAsLines = FALSE,
withNormals = TRUE, withTextures = TRUE,
separateObjects = TRUE,
ids = NULL)
pointRadius
.rgl.ids
) of the
objects to write. If NULL
, try to write everything.pointsAsPoints
and linesAsLines
have been
chosen because Blender (separateObjects = TRUE
, the default.
The output file should be readable by Blender and Meshlab; the latter can write in
a number of other formats, including U3D, suitable for import into a PDF document.scene3d
saves a copy of a scene to an R variable;
writeWebGL
, writePLY
and writeSTL
write the scene to a file in various other formats.filename <- tempfile(fileext=".obj")
open3d()
shade3d( icosahedron3d() )
writeOBJ(filename)
Run the code above in your browser using DataLab