tangents_to_colors: Convert tangent vectors to orientation RGB colours

View source: R/brain-mesh.R

tangents_to_colorsR Documentation

Convert tangent vectors to orientation RGB colours

Description

Computes direction-based RGB colours from centerline tangent vectors. Standard tractography colouring: R = left-right (x), G = anterior-posterior (y), B = superior-inferior (z).

Usage

tangents_to_colors(mesh_data)

Arguments

mesh_data

Mesh data with vertices data.frame and metadata list

Value

Character vector of hex colours (one per mesh vertex)


ggseg3d documentation built on Feb. 21, 2026, 1:06 a.m.