Skip to content

Function: extractSliceForView() ​

ts
function extractSliceForView(
   space, 
   sliceIndex, 
   _viewAxis): NeuroSpace;

Defined in: src/geometry/SliceHelpers.ts:15

Extract a slice space for a specific view orientation

Parameters ​

space ​

NeuroSpace

The 3D NeuroSpace to extract from

sliceIndex ​

number

The index of the slice to extract

_viewAxis ​

AxisSet3D

The viewing orientation (retained for API consistency)

Returns ​

NeuroSpace

A 2D NeuroSpace representing the slice

Released under the MIT License.