Dynamically setting colortable to volume

185 Views Asked by At

The following snippet doesn't seem to do anything after the volume was rendered.

volume.colortable.file = file; volume.modified(); r.render(); Also, placing volume.colortable.file = file; after r.add(volume) causes a "y is undefined" error.

The latest xtk_edge.js was used.

1

There are 1 best solutions below

1
On

That's right. The color table need to be attached during parsing to properly configure the texture of the volume/labelmap. There is also no easy way around that in my eyes.