openmsr / CAD_to_OpenMC

code to target the conversion from a step-file to a h5m-geometry for neutronics
MIT License
25 stars 16 forks source link

At times step-files containing DEGENERATE_TOROIDAL_SURFACES fail to mesh properly #94

Closed ebknudsen closed 3 days ago

ebknudsen commented 4 months ago

In some cases a geometry step-file containing one or more degenerate toroidal surfaces can fail to mesh. It seems to be an underlying problem with the step-importer.

ebknudsen commented 4 months ago

bowl_os_left_below_part ends up being something like this: bowl_left_below_pyocc

ebknudsen commented 3 days ago

Using some CAD-tools (e.g. onshape) it is possible to choose to "export to step" with the convert surfaces to b-surfaces feature enabled. This can act as a workaround for this problem.

ebknudsen commented 3 days ago

The problem has been reported upstream to OpenCASCADE. Closing for now as solutions have to be upstream.