brown-ccv / react-volume-viewer

Volume Viewer package for react based websites
MIT License
0 stars 0 forks source link

Ability to select an individual model when `Blending.None` #117

Closed RobertGemmaJr closed 2 years ago

RobertGemmaJr commented 2 years ago

Only one model will actually be displayed when blending=Blending.None. The first model with enabled=true will be displayed.

All of the other models should have enabled=false. The controls (<EnabledControls />) will have to reflect this in state as well - whenever a different model is enabled the other one must become disabled. Perhaps it will be worth it to passed in a selected prop to index the models array?

RobertGemmaJr commented 2 years ago

I'm almost wondering if it will be worth it to have a different component for blending and when not (Scene.jsx and BlendingScene.jsx?) because the differences will be so vast. That might be a more logical separation - the user who does and doesn't want blending are interacting with VolumeViewer in much different ways.