View source: R/read_fs_surface.R
polygon.soup.to.indexed.mesh | R Documentation |
Some mesh file formats like STL do not store the faces as indices into a vertex list ('indexed mesh'), but repeat all vertex coordinates for each face ('polygon soup'). This function creates an indexed mesh from a polysoup.
polygon.soup.to.indexed.mesh(faces_vertex_coords, digits = 6)
faces_vertex_coords |
numerical matrix with *n* rows and 3 columns, the vertex coordinates of the faces. Each row contains the x,y,z coordinates of a single vertex, and three consecutive vertex rows form a triangular face. |
digits |
the precision (number of digits after decimal separator) to use when to determine whether two x,y,z coords define the same vertex. |
an indexed mesh, as an 'fs.surface' instance (see read.fs.surface
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.