[Gmsh] OpenCASCADE wire or line loop with tag ** already exists
Christophe Geuzaine
cgeuzaine at uliege.be
Fri Jul 27 07:57:36 CEST 2018
> On 10 Jul 2018, at 18:44, Jean de sauvage <jean.desauvage at gmail.com> wrote:
>
> Hello,
> I have a problem with a .geo I've written automatically (I cannot change tags manually). The code is reproduced below. It is a bit long but I do not reproduce this error with smaller pieces of code !
> I get the following error :
> Error : OpenCASCADE wire or line loop with tag 75 already exists
> Error : '/home/jds/Etudes/clouage/clouage_fusion.geo', line 117 : Could not add line loop
>
> And when I suppress the line defining Line Loop 75, I get an error saying this LIne Loop does not exists.
> I must I am a bit confused and if anyone had an idea about what be wrong here, I would be thankful.
>
By default we ask OpenCASCADE to automatically fix the orientation of line/surface loops ("wires" and "shells") to make sure that surfaces/volumes based on those are oriented correctly. When a fix is applied this creates new loops. To disable these automatic fixes, you can set
Geometry.OCCAutoFix = 0;
at the beginning of your .geo file.
Christophe
> Sincerely, Jean
>
> ##### My code ######
>
> SetFactory("OpenCASCADE");
> cl__1 = 1e+22;
> Point(1) = {18, -1, -12, 1e+22};
> Point(2) = {-24, -1, -12, 1e+22};
> Point(3) = {-24, -1, 6, 1e+22};
> Point(4) = {-5.5, -1, 6, 1e+22};
> Point(5) = {-0.5, -1, 6, 1e+22};
> Point(6) = {-0, -1, 6, 1e+22};
> Point(11) = {0, -1, 0, 1e+22};
> Point(12) = {18, -1, 0, 1e+22};
> Point(21) = {-4.901923448072075e-07, -1, 1.49999999999992, 1e+22};
> Point(22) = {18, -1, 1.49999999999992, 1e+22};
> Point(31) = {-9.803846896144151e-07, -1, 2.99999999999984, 1e+22};
> Point(32) = {18, -1, 2.99999999999984, 1e+22};
> Point(41) = {-1.470577034421623e-06, -1, 4.499999999999759, 1e+22};
> Point(42) = {18, -1, 4.499999999999759, 1e+22};
> Point(52) = {18, -1, 5.999999999999679, 1e+22};
> Point(53) = {-4.901923448072075e-07, 1, 1.49999999999992, 1e+22};
> Point(54) = {18, 1, 1.49999999999992, 1e+22};
> Point(58) = {18, 1, 0, 1e+22};
> Point(62) = {0, 1, 0, 1e+22};
> Point(63) = {18, 1, -12, 1e+22};
> Point(64) = {-24, 1, -12, 1e+22};
> Point(68) = {-24, 1, 6, 1e+22};
> Point(72) = {-5.5, 1, 6, 1e+22};
> Point(76) = {-0.5, 1, 6, 1e+22};
> Point(80) = {0, 1, 6, 1e+22};
> Point(84) = {-1.470577034421623e-06, 1, 4.499999999999759, 1e+22};
> Point(88) = {-9.803846896144151e-07, 1, 2.99999999999984, 1e+22};
> Point(90) = {18, 1, 4.499999999999759, 1e+22};
> Point(94) = {18, 1, 2.99999999999984, 1e+22};
> Point(96) = {18, 1, 5.999999999999679, 1e+22};
> Point(1001) = {-4.5924254968e-17, 0, 0.75, 1e+22};
> Point(1002) = {-4.92403876506, 0, -0.118240888335, 1e+22};
> Point(1011) = {-1.37772764904e-16, 0, 2.25, 1e+22};
> Point(1012) = {-5.90884651807, 0, 1.208110934, 1e+22};
> Point(1021) = {-2.2962127484e-16, 0, 3.75, 1e+22};
> Point(1022) = {-5.90884651807, 0, 2.708110934, 1e+22};
> Point(1031) = {-3.21469784776e-16, 0, 5.25, 1e+22};
> Point(1032) = {-6.89365427109, 0, 4.03446275633, 1e+22};
> Line(1) = {1, 2};
> Line(2) = {2, 3};
> Line(3) = {3, 4};
> Line(4) = {4, 5};
> Line(5) = {5, 6};
> Line(7) = {12, 1};
> Line(12) = {11, 12};
> Line(21) = {21, 11};
> Line(22) = {21, 22};
> Line(23) = {22, 12};
> Line(31) = {31, 21};
> Line(32) = {31, 32};
> Line(33) = {32, 22};
> Line(41) = {41, 31};
> Line(42) = {41, 42};
> Line(43) = {42, 32};
> Line(51) = {6, 41};
> Line(52) = {6, 52};
> Line(53) = {52, 42};
> Line(55) = {53, 54};
> Line(56) = {54, 58};
> Line(57) = {58, 62};
> Line(58) = {62, 53};
> Line(60) = {21, 53};
> Line(61) = {22, 54};
> Line(65) = {12, 58};
> Line(69) = {11, 62};
> Line(77) = {63, 64};
> Line(78) = {64, 68};
> Line(79) = {68, 72};
> Line(80) = {72, 76};
> Line(81) = {76, 80};
> Line(82) = {80, 84};
> Line(83) = {84, 88};
> Line(84) = {88, 53};
> Line(87) = {58, 63};
> Line(89) = {1, 63};
> Line(90) = {2, 64};
> Line(94) = {3, 68};
> Line(98) = {4, 72};
> Line(102) = {5, 76};
> Line(106) = {6, 80};
> Line(110) = {41, 84};
> Line(114) = {31, 88};
> Line(134) = {84, 90};
> Line(135) = {90, 94};
> Line(136) = {94, 88};
> Line(140) = {42, 90};
> Line(144) = {32, 94};
> Line(157) = {94, 54};
> Line(178) = {80, 96};
> Line(179) = {96, 90};
> Line(184) = {52, 96};
> Line(1001) = {1001, 1002};
> Line(1011) = {1011, 1012};
> Line(1021) = {1021, 1022};
> Line(1031) = {1031, 1032};
> Line Loop(1) = {1, 2, 3, 4, 5, 51, 41, 31, 21, 12, 7};
> Plane Surface(1) = {1};
> Line Loop(21) = {22, 23, -12, -21};
> Plane Surface(21) = {21};
> Line Loop(31) = {32, 33, -22, -31};
> Plane Surface(31) = {31};
> Line Loop(41) = {42, 43, -32, -41};
> Plane Surface(41) = {41};
> Line Loop(51) = {52, 53, -42, -51};
> Plane Surface(51) = {51};
> Line Loop(62) = {22, 61, -55, -60};
> Plane Surface(62) = {62};
> Line Loop(66) = {23, 65, -56, -61};
> Plane Surface(66) = {66};
> Line Loop(70) = {-12, 69, -57, -65};
> Plane Surface(70) = {70};
> Line Loop(74) = {-21, 60, -58, -69};
> Plane Surface(74) = {74};
> Point {1001} In Surface {74};
> Line Loop(75) = {55, 56, 57, 58};
> Plane Surface(75) = {75};
>
>
> --
> ________
>
> Jean de Sauvage
> Ingénieur des Ponts, des Eaux et des Forêts
> PhD IFSTTAR - ENTPE - ENPC
> 25 avenue de la Gare, 58250 Fours, FRANCE
> 06 51 25 16 94
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180727/94c68ab9/attachment-0001.html>
More information about the gmsh
mailing list