From 6e47893b75a0b97c16295ebca8501db17d1905ac Mon Sep 17 00:00:00 2001 From: neurolabusc Date: Fri, 3 May 2024 08:38:49 -0400 Subject: [PATCH] Add ability to save scene --- index.html | 2 ++ main.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/index.html b/index.html index 33f0bf2..615e39d 100644 --- a/index.html +++ b/index.html @@ -27,6 +27,8 @@     + +     diff --git a/main.js b/main.js index 7fdbdf2..a2ee7d0 100644 --- a/main.js +++ b/main.js @@ -92,6 +92,9 @@ async function main() { saveBtn.onclick = function () { nv1.volumes[1].saveToDisk("Custom.nii") } + sceneBtn.onclick = function () { + nv1.saveDocument("niivue.brainchop.nvd") + } workerCheck.onchange = function () { modelSelect.onchange() }