Surface orientation using OpenCASCADE
Hello, I am trying to control (without success) the orientation of the surfaces created with the OpenCASCADE kernel.
I have seen issues #474 (closed) and #1049 (closed), but I could not understand yet if there is a way to control the orientation of the surface using the command gmsh.model.occ.addPlaneSurface
.
I made some tests, with a plane made of two surfaces. I changed the orientation and the sign of the Spline to make the top surface and obtained the following results:
Script used here: surface_orientation.py
My questions:
- The order of the curve loop created with
gmsh.model.occ.addCurveLoop
influences the normal of the surfaces in which way? - To avoid "wrong" orientations in the mesh, I had to check the orientation of each surface and "correct" with the command
gmsh.model.mesh.setReverse
. There is a better way to deal with this situation?