vertices-methods: Extract Vertices from a Surface Object

verticesR Documentation

Extract Vertices from a Surface Object

Description

Extracts the vertices from a surface object, providing a standardized interface across different surface representations.

Usage

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)

Arguments

x

An object representing a surface.

...

Additional arguments passed to methods.

indices

a vector of indices specifying the valid surface nodes.

Value

A matrix or data structure containing vertex information.

See Also

nodes

Examples

## Not run: 
vertex_data <- vertices(surface_obj)
num_vertices <- nrow(vertex_data)

## End(Not run)


bbuchsbaum/neurosurf documentation built on June 10, 2025, 8:22 p.m.