Interactive 3D visualization
The 3D viewer uses PyVista/VTK for hardware-accelerated rendering. The cortical surface, electrode trajectories, and individual contact spheres are all rendered together in a freely rotatable scene.
- Left-click drag to rotate; right-click drag to pan; scroll to zoom
- Double-click to reset camera
- Fullscreen mode for presentation or clinical review
- Hover over any contact to see its name, LPS coordinates, and parcellation label
- Click a contact to jump the Reconstruction view to that slice
Overlay toggles
Toggle any combination of: T1 brain surface, CT/T2/PET/SISCOM isosurfaces, pial surfaces (L/R), brain mask outline, and parcellation-coloured surfaces. Each has independent opacity control.
Parcellation labels
Hover over any point on the brain surface or over a contact sphere to query its anatomical label from the loaded FreeSurfer parcellation. Labels appear as a floating tooltip.
MNI normalization
Register the patient T1 to the MNI152NLin2009cAsym template using ANTs. Inverse warps allow mapping of electrode coordinates from patient space to standard MNI152 space.
Crosshair bridge
Press Ctrl+D in the Reconstruction page to send the current crosshair position as a red marker to the 3D view. Useful for verifying a contact position in 3D context.
Export options
- Electrode coordinates — CSV or BIDS-compatible TSV, in LPS mm and/or MNI152 mm
- Screenshot — current 3D view at full resolution (PNG)
- Animated GIF — 360° rotation of the 3D scene for publications
- Contact → region table — from the parcellation overlay (CSV)