Does the direction of the curve loops matter when building a volume from surfaces?
22:55 30 Oct 2026

Lets say we are building curve loops to build surfaces that will be combined to build a volume (for example, 6 squares to build a cube).

Each curve loop requires an ordered list of connected curves, which could be clockwise or anti-clockwise. When the surfaces resulting from the curve loops are combined to build a surface loop and subsequently a volume, does it matter if the curve loops corresponding to the six surfaces are in the same direction or different directions?

Essentially, does the direction of the curve loop (clockwise or anticlockwise) determine the direction of the normal to the surface?

Does the normal to the surfaces matter when building a volume from surfaces?

For example, in GMSH 3D surface mesh, the code for the original problem and the solution both work for me. Reversing the two curves in the solution makes no difference to my mesh.

Plane Surface(3) = {-3};
Plane Surface(4) = {-4};

Also in the default example, https://gitlab.onelab.info/gmsh/gmsh/blob/gmsh_4_15_2/tutorials/t2.geo, for the first volume, the upper surface has curve loop in the anti-clockwise direction, whereas for the four side faces, the curve loops are in the clockwise direction, when you are looking into the volume from outside. Reversing the direction of the curve loop for one of the faces seems to not make any difference. Can someone please confirm this behavior?

Curve Loop(118) = {115, -111, 3, 110};  Plane Surface(119) = {118};
Curve Loop(120) = {111, 116, -112, -7}; Plane Surface(121) = {120};
Curve Loop(122) = {112, 117, -113, -8}; Plane Surface(123) = {122};
Curve Loop(124) = {114, -110, 5, 113};  Plane Surface(125) = {124};
Curve Loop(126) = {115, 116, 117, 114}; Plane Surface(127) = {126};

Does the order of surface loops matter when building a volume?

Surface Loop(128) = {127, 119, 121, 123, 125, 11};

gmsh