Surface duplication in OpenCASCADE
Hi,
I found a bug where creating a Surface Loop will duplicatea surface that has been defined as a revolution (Extrusion), here is the example:
SetFactory("OpenCASCADE");
Point(1) = {1, 0, 0};
Point(2) = {1, 0, 0.5};
Line(100) = {1, 2};
a() = Extrude{ {0,0,1}, {0,0,0}, 2*Pi }{ Line{100}; };
Line Loop(201) = {101};
Line Loop(202) = {102};
Surface(301) = {201};
Surface(302) = {202};
Surface Loop(1000) = {1, 301, 302};
Expected output: 3 surfaces ready to be made into a volume Result: 4 surfaces, one created by the line Surface Loop(1000) = {1, 301, 302}; The new surface has the ID 303.
This is somewhat critical as meshing two 2D surfaces at the same place doen't give good results.