Skip to content

Function: getSliceAxisIndex() ​

ts
function getSliceAxisIndex(_viewAxis): number;

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

Get the axis index that should be used for slicing in a given view

Parameters ​

_viewAxis ​

AxisSet3D

The viewing orientation (retained for API consistency)

Returns ​

number

The axis index (0=X, 1=Y, 2=Z) to slice along

Released under the MIT License.