surf_area: Surface area calculation

View source: R/surf_area.R

surf_areaR Documentation

Surface area calculation

Description

Calculate surface area of a "surf" object by vertex or face. Surface area calculation by vertex matches the Workbench command "-surface-vertex-areas".

Usage

surf_area(surf, by = c("vertex", "face"))

Arguments

surf

The "surf" object.

by

"vertex" or "face". For "vertex", the result is the area associated with each vertex: the sum the area of each triangular face it is a part of, divided by three. For "face", the result is the surface area of each face.

Value

Vector of surface areas by vertex or face, in the same order as how the vertices or faces are listed in surf. The units are the square of the units of surf$vertices.

See Also

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


mandymejia/ciftiTools documentation built on Feb. 28, 2024, 11:20 a.m.