GEOUNED-org / GEOUNED

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

[Feature request] - allow exporting of void geometry to separate STP file #208

Closed shimwell closed 3 months ago

shimwell commented 3 months ago

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

I was getting a glimpse of @AlvaroCubi working with geouned today. He makes use of the settings.debug=True to export decomposed geometry in stp format. We both think there is no debug setting equivalent for exporting void cells to stp file.

Describe the solution you'd like

We would like to export the void cells to a separate stp file so that manual inspection can take place

psauvan commented 3 months ago

This is not feasible since void cells are not solid CAD cells. Void cells are only logical CGS cell definition. This can be done only with enclosures cells (since there are defined in the Step file as a solid). The other option is to reconstruct the void cell using the reverse function (CSG to CAD) of GEOUNED. But this alternative will fail a lot since voids can be complex and reverse function is not so stable to translate such complex cells