View source: R/write_fs_surface.R
| write.stl.ascii | R Documentation |
Writes the 'solid' block of the ASCII variant of the STL format,
with 7 lines per face ('facet normal', 'outer loop', 3 'vertex' lines,
'endloop', 'endfacet'). This is the layout that
read.fs.surface.stl.ascii and other STL readers expect.
write.stl.ascii(con, vertex_coords, faces, face_normals, solid_name = "mesh")
con |
a connection opened in binary write mode, the file is written as text through it. |
vertex_coords |
n x 3 matrix of doubles, the vertex coordinates. |
faces |
n x 3 matrix of integers, the vertex indices of the triangles. |
face_normals |
n x 3 matrix of doubles, the normals of the faces, see
|
solid_name |
character string, the name of the mesh. |
NULL, invisibly. The data are written to con.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.