diff --git a/examples/vtkDisplay/index.html b/examples/vtkDisplay/index.html index 4fcd242e..31389dcc 100644 --- a/examples/vtkDisplay/index.html +++ b/examples/vtkDisplay/index.html @@ -451,7 +451,8 @@

Volume:

// a vtkVolume (actor) ready to render // function part10ToVolumeActor(part10) { - + part10 = Array.isArray(part10) ? part10[0] : part10; + dataset = DICOMZero.datasetFromArrayBuffer(part10); const scalarArray = vtk.Common.Core.vtkDataArray.newInstance({ @@ -480,7 +481,7 @@

Volume:

} function part10ToSEGVolumeActors(part10) { - + part10 = Array.isArray(part10) ? part10[0] : part10; dataset = DICOMZero.datasetFromArrayBuffer(part10); if (dataset.SegmentSequence.constructor.name !== "Array") { dataset.SegmentSequence = [dataset.SegmentSequence];