writePLY
function
does the necessary conversions.writePLY(con, format = c("little_endian", "big_endian", "ascii"),
pointRadius = 0.005, pointShape = icosahedron3d(),
lineRadius = pointRadius, lineSides = 20,
pointsAsEdges = FALSE, linesAsEdges = pointsAsEdges,
withColors = TRUE, withNormals = !(pointsAsEdges || linesAsEdges),
ids = NULL)
pointRadius
.rgl.ids
) of the
objects to write. If NULL
, try to write everything.pointsAsEdges
and linesAsEdges
have been
chosen because Blender (scene3d
saves a copy of a scene to an R variable;
writeWebGL
, writeOBJ
and writeSTL
write the scene to a file in various other formats.filename <- tempfile(fileext=".ply")
open3d()
shade3d( icosahedron3d(col="magenta") )
writePLY(filename)
Run the code above in your browser using DataLab