% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brain-mesh.R
\name{generate_tube_mesh}
\alias{generate_tube_mesh}
\title{Generate tube mesh from centerline}
\usage{
generate_tube_mesh(centerline, radius = 0.5, segments = 8)
}
\arguments{
\item{centerline}{Matrix with N rows and 3 columns (x, y, z coordinates)}

\item{radius}{Tube radius. Either a single value or vector of length N.}

\item{segments}{Number of segments around tube circumference.}
}
\value{
List with vertices (data.frame), faces (data.frame), and metadata
}
\description{
Creates a 3D tube mesh around a centerline path using parallel transport
frames for smooth geometry without twisting artifacts.
}
\keyword{internal}
