[Gmsh] Avoiding duplicate surfaces with OpenCASCADE kernel

Ingraham, Daniel J. (GRC-LTV0) daniel.j.ingraham at nasa.gov
Mon Mar 4 17:09:50 CET 2019

Hi Gmsh users,

I'm trying to mesh a geometry that has some rotational symmetry. In the
past, I've used the Rotate command to help with this, with good results.
With the built-in geometry kernel, everything works fine. With the
OpenCASCADE kernel, however, Gmsh appears to duplicate surfaces when I
define a new elementary volume after rotating the surfaces.

I've read on this mailing list that OpenCASCADE will duplicate surfaces
when they aren't oriented properly, and that this can be disabled if
`Geometry.OCCAutoFix` is set to `0`. I've tried that, but the duplicate
surfaces are still created.

With the built-in kernel, the orientation of a surface can be reversed
by negating its ID number in the `Surface Loop` call, but that doesn't
appear to be the case when using the OpenCASCADE kernel.

I've attached two example geo scripts that demonstrate the problem.
`builtin.geo` uses the built-in kernel, and `opencascade.geo` uses

Any ideas?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin.geo
Type: application/vnd.dynageo
Size: 1547 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190304/51e71093/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencascade.geo
Type: application/vnd.dynageo
Size: 1569 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20190304/51e71093/attachment-0001.geo>

More information about the gmsh mailing list