scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
66 stars 17 forks source link

Child nodes are not updated in tree view #479

Closed kephale closed 1 year ago

kephale commented 1 year ago

Both demos: ShowSegmentations and CREMI have a volume with child meshes.

These meshes are not added to the tree view when the demos are run.

To reproduce:

  1. Run either Show Segmentations or CREMI
  2. Expand the treeview for the volumes
kephale commented 1 year ago

These nodes are being added with Node.addChild, but maybe we should use SciView.addNode and extend addNode to accept a parent keyword with a default value of the Scene.

kephale commented 1 year ago

This led me to https://github.com/scenerygraphics/sciview/issues/480

kephale commented 1 year ago

https://github.com/scenerygraphics/sciview/pull/481 has a better solution that does not expand the API.