Skip to content

Commit 1240ac5

Browse files
committed
WIP: demonstrate setVolumeRenderIllumination crash
For niivue#1158
1 parent a2ef58d commit 1240ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/niivue/demos/features/shiny.volumes.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
}
9292
var volumeList1 = [
9393
{ url: "../images/mni152.nii.gz", cal_min: 30, cal_max: 80 },
94-
{url: "../images/spmMotor.nii.gz",cal_min: 3,cal_max: 8,colormap: "warm"}
94+
{url: "../images/spmMotor.nii.gz",cal_min: 3, cal_max: 8,colormap: "warm"}
9595
]
9696
function handleLocationChange(data) {
9797
document.getElementById("location").innerHTML =
@@ -108,13 +108,13 @@
108108
nv1.attachTo("gl1")
109109
nv1.setSliceType(nv1.sliceTypeRender)
110110
nv1.opts.multiplanarShowRender = niivue.SHOW_RENDER.ALWAYS
111-
nv1.setVolumeRenderIllumination(1.0)
112111
nv1.setClipPlane([0.3, 180, 20])
113112
await nv1.loadVolumes(volumeList1)
114113
await nv1.loadMeshes([
115114
{ url: "../images/connectome.jcon" },
116115
{ url: "../images/dpsv.trx", rgba255: [0, 142, 0, 255] },
117116
])
117+
nv1.setVolumeRenderIllumination(1.0)
118118
matCaps.dispatchEvent(new Event("change"))
119119
nv1.setSliceType(nv1.sliceTypeMultiplanar)
120120
nv1.graph.autoSizeMultiplanar = true

0 commit comments

Comments
 (0)