Skip to content

Function: projectRibbonVolume() ​

ts
function projectRibbonVolume(
   volume, 
   surface, 
   options?
): ProjectVolumeResult;

Defined in: projectVolume.ts:138

Sample each vertex's own white→pial segment without Three.js or WebGL. Endpoints are included; one step samples the midpoint. Zero-length segments sample their shared endpoint. Mask, interpolation, reducers and missing-value semantics match projectVolume; segment directions are never normalized. Returns NaN/count=0 for an entirely invalid segment. Inputs are borrowed and not mutated. Complexity is O(vertices × steps), with one affine inverse.

Parameters ​

volume ​

VolumeDescriptor

surface ​

RibbonProjectionSurface

options? ​

ProjectRibbonVolumeOptions = {}

Returns ​

ProjectVolumeResult

Released under the MIT License.