BooleanFragment Fail
Hello there,
I'm using gmsh 4.8.4 with C++ API and I have a problem. I am attaching an example of a test. I have 3 intersect plane and, when I do booleanFragment, gmsh fail. I have synchronized OCC model before call Fragment.
Here the geometry:
Point(1) = {0, 0, 0}; Point(2) = {100, 0, 0}; Point(3) = {100, 100, 0}; Point(4) = {0, 100, 0}; Line(1) = {1, 2}; Line(2) = {2, 3}; Line(3) = {3, 4}; Line(4) = {4, 1}; Curve Loop(1) = {1, 2, 3, 4}; Plane Surface(1) = {1};
Point(5) = {30, 0, 0}; Point(6) = {30, 100, 0}; Point(7) = {30, 100, 100}; Point(8) = {30, 0, 100}; Line(5) = {5, 6}; Line(6) = {6, 7}; Line(7) = {7, 8}; Line(8) = {8, 5}; Curve Loop(2) = {5, 6, 7, 8}; Plane Surface(2) = {2};
Point(9) = {0, 30, 0}; Point(10) = {100, 30, 0}; Point(11) = {100, 30, 100}; Point(12) = {0, 30, 100}; Line(9) = {9, 10}; Line(10) = {10, 11}; Line(11) = {11, 12}; Line(12) = {12, 9}; Curve Loop(3) = {9, 10, 11, 12}; Plane Surface(3) = {3};
than I call Occ/Synchronize and Occ/Fragment (object: all surfaces // tool: all surfaces). And the Api return an error (Index was outside the bounds of the array). Can you check it? if I make similar intersect plane everything works (If you scale or move one surface or move). It seems that it does not synchronize with OCC or that it does not recognize some entities.
Thanks a lot
Gabriele! test_gmsh_screen