Open ctrueden opened 1 year ago
https://github.com/scenerygraphics/sciview/pull/433 this already cleans up the addVolume methods. Maybe this issue could also be resolved there.
I think it might be possible to close this since #497
@ctrueden is this closable?
I haven't had time to play with the revised API yet, but would defer to others on whether they think it's friendly enough now.
Right now the pattern is:
Would be nice if there were an API to make this pattern emerge automatically, by rolling the publication into one of the other API calls or some such.
If the idea is to "build up" the volume's structure before publishing the finished product, maybe we could use a builder pattern, or some kotlinesque/functional thing?
Such that publication happens when the
withConfig
finishes? There are surely a few different ways to pet this particular cat, just wondering if we can reduce the chance of forgetting to publish after setting things up.