Description Usage Arguments Details Value Author(s) References See Also Examples
This function writes PLY files. This is a simple file format that
is commonly used in 3D printing. It does not represent text,
only edges and polygons. The writePLY
function
does the necessary conversions.
1 2 3 4 5 6 |
con |
A connection or filename. |
format |
Which output format. Defaults to little-endian binary. |
pointRadius, lineRadius |
The radius of points and lines relative to the overall scale of the figure, if they are converted to polyhedra. |
pointShape |
A mesh shape to use for points if they are converted. It is scaled by the |
lineSides |
Lines are rendered as cylinders with this many sides. |
pointsAsEdges, linesAsEdges |
Whether to convert points and lines to “Edge” records in the PLY output. |
withColors |
Whether to output vertex color information. |
withNormals |
Whether to output vertex normals for smooth shading. |
ids |
The identifiers (from |
The current implementation only outputs triangles, quads, planes, spheres, points, line segments, line strips and surfaces.
The defaults for pointsAsEdges
and linesAsEdges
have been
chosen because Blender (https://www.blender.org) does not import
lines, only polygons. If you are exporting to other software you
may want to change them.
Since the PLY format only allows one object per file, all RGL objects are combined into a single object when output.
The output file is readable by Blender and Meshlab; the latter can write in a number of other formats, including U3D, suitable for import into a PDF document.
Invisibly returns the name of the connection to which the data was written.
Duncan Murdoch
The file format was found on https://www.mathworks.com on November 10, 2012 at a URL that no longer exists; currently the format is described at https://www.mathworks.com/help/vision/ug/the-ply-format.html.
scene3d
saves a copy of a scene to an R variable;
rglwidget
, writeASY
, writeOBJ
and writeSTL
write the scene to a file in various other formats.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.