I get a strange result when trying to mesh surfaces created with lines and ThruSections. 2 surfaces are meshed fine (1 and 4), but 2 and 3 have weird meshes. Code is below, as well as a picture.
lc=1.0; lcp=1.0; SetFactory("OpenCASCADE"); // ******************************************** // ************** Malha ************** // ******************************************** Mesh.CharacteristicLengthFactor = 1.; Mesh.CharacteristicLengthMin = 0; Mesh.CharacteristicLengthMax = 1e22; //Mesh.RecombineAll = 1; // ******************************************** // ************** Importing ************** // ******************************************** Point(1) = {11.1370602317822, -7.48705927522542, 0.856847623780698, lcp}; Point(2) = {11.6324935551766, -7.48705927522542, 0.856847623780698, lcp}; Point(3) = {11.6324935551766, -6.83985372741768, 0.856847623780698, lcp}; Point(4) = {11.1370602317822, -6.83985372741768, 0.856847623780698, lcp}; Line(1) = {1, 2}; Line(2) = {2, 3}; Line(3) = {3, 4}; Line(4) = {4, 1}; Line Loop(1) = {1, 2, 3, 4}; Point(5) = {11.1370602317822, -7.48705927522542, 0, lcp}; Point(6) = {12.0250173524881, -7.48705927522542, 0, lcp}; Point(7) = {12.0250173524881, -6.43573787853473, 0, lcp}; Point(8) = {11.1370602317822, -6.43573787853473, 0, lcp}; Line(5) = {5, 6}; Line(6) = {6, 7}; Line(7) = {7, 8}; Line(8) = {8, 5}; Line Loop(2) = {5, 6, 7, 8}; Wire(300) = {1,2,3,4}; Wire(301) = {5,6,7,8}; Ruled ThruSections{300, 301} Best regards, Leonardo
_______________________________________________ gmsh mailing list gmsh@onelab.info http://onelab.info/mailman/listinfo/gmsh