Extract Faces from a Surface Object
Source:R/all_generic.R, R/geometry.R, R/neuro_surface.R
faces-methods.RdExtracts the triangle faces from a surface object, providing a standardized interface across different surface representations.
Usage
faces(x, ...)
# S4 method for class 'SurfaceGeometry'
faces(x)
# S4 method for class 'NeuroSurface'
faces(x)
# S4 method for class 'NeuroSurfaceVector'
faces(x)Value
A matrix where each row represents a triangular face, containing the 1-based vertex indices that form the triangle.
Examples
# \donttest{
geom <- example_surface_geometry()
face_data <- faces(geom)
num_faces <- nrow(face_data)
# }