Creates a data object for white matter tract atlases. Stores centerlines compactly; tube meshes are generated at render time for efficiency.
Usage
ggseg_data_tract(sf = NULL, centerlines = NULL, meshes = NULL, ...)
brain_data_tract(sf = NULL, centerlines = NULL, meshes = NULL, ...)Arguments
- sf
sf data.frame with columns label, view, geometry for 2D rendering. Optional.
- centerlines
data.frame with columns:
label: tract identifier (character)
points: list-column of n x 3 matrices (centerline coordinates)
tangents: list-column of n x 3 matrices (for orientation coloring)
- meshes
Deprecated. Use centerlines instead. If provided, will be converted to centerlines format.
- ...
Absorbs legacy fields (e.g. tube_radius, tube_segments) from old cached atlas objects.