mask_surf: Mask surface

View source: R/utils_surf.R

mask_surfR Documentation

Mask surface

Description

Mask a surface mesh.

Usage

mask_surf(surf, mask)

Arguments

surf

A "surf" object

mask

A length V logical vector indicating if each vertex is within the input mask.

Details

Apply a binary mask to a "surf" object (list of vertices and corresponding faces). Vertices not in the mask are removed, and faces (triangles) with any vertices not in the mask are removed. Finally, vertex numbering for the new faces matrix is corrected.

Value

The masked "surf" object.

See Also

Other surface-related: add_surf(), boundary_mask_surf(), edit_mask_surf(), even_vert_samp(), is.surf(), load_surf(), read_surf(), resample_surf(), rotate_surf(), surf_area(), view_surf(), write_surf_gifti()


ciftiTools documentation built on Oct. 4, 2024, 1:12 a.m.