GEOUNED-org / GEOUNED

A tool to convert CAD to CSG & CSG to CAD for Monte Carlo transport codes
European Union Public License 1.2
45 stars 27 forks source link

[Feature request] - more flexible cell selection by changing Settings.cellRange to discrete values #204

Closed shimwell closed 3 weeks ago

shimwell commented 4 weeks ago

Is your feature request related to a problem? Please describe.

I would like to load a model and convert volume numbers 1, 4 ,and 9. Currently I can just specify a range of volumes to not convert e.g vol 1 to vol 3. This is not useful when the volumes I want to convert are not adjacent.

Describe the solution you'd like

I propose we change the Settings.cellRange so that it accepts a list of cell volumes that should not be converted instead of a range between two cell numbers.

Describe alternatives you've considered

Keeping it the same and modifying the CAD so that the volumes I want to skip are all next to each other

Additional context

I think this would help a bit with this other issue https://github.com/GEOUNED-org/GEOUNED/issues/201

shimwell commented 3 weeks ago

This has been solved by PR #205