vertices | R Documentation |
Extracts the vertices from a surface object, providing a standardized interface across different surface representations.
vertices(x, ...)
## S4 method for signature 'SurfaceGeometry'
vertices(x, indices)
## S4 method for signature 'NeuroSurface'
vertices(x)
## S4 method for signature 'NeuroSurfaceVector'
vertices(x, indices)
x |
An object representing a surface. |
... |
Additional arguments passed to methods. |
indices |
a vector of indices specifying the valid surface nodes. |
A matrix or data structure containing vertex information.
nodes
## Not run:
vertex_data <- vertices(surface_obj)
num_vertices <- nrow(vertex_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.