<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 1 Mar 2018, at 09:30, Stephan Köhler <<a href="mailto:koehlste@unixmail.tu-freiberg.de" class="">koehlste@unixmail.tu-freiberg.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello,<br class="">I try to build a mesh of an ellipsoid with gmsh 3.0.6 and the<br class="">OpenCASCADE kernel, but the surface<br class="">mesh is not so pretty and it happens a strange thing curved surface.<br class=""></div></div></blockquote><div><br class=""></div><div>"Surface" builds "a" bspline surface going through the curves. I would do this to build an ellipsoid:</div><div><br class=""></div><div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">SetFactory("OpenCASCADE");</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Sphere(1) = {0, 0, 0, 0.5};</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Dilate {{0, 0, 0}, {1.5, 1, 0.5}} { Volume{1}; }</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class="">Characteristic Length{:} = 0.1;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Mesh.Algorithm = 6;</span></div></div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="">I've done some research, but i couldn't find a<br class="">solution. So I hope you can help me. It works without the OpenCASCADE<br class="">kernel, but I need the boolean operation.<br class=""><br class="">Thank you very much,<br class="">Stephan<br class=""><br class="">////////////////////////////////////////<br class="">// ellipsoid<br class=""><br class="">SetFactory("OpenCASCADE");<br class=""><br class="">// middle point<br class="">Point(9) = {0.5, 0.5, 0.5};<br class=""><br class="">// major axis<br class="">Point(10) = {0.7, 0.5, 0.5};<br class="">Point(11) = {0.5, 0.5, 0.7};<br class="">Point(12) = {0.3, 0.5, 0.5};<br class="">Point(13) = {0.5, 0.5, 0.3};<br class="">Point(14) = {0.5, 1.5, 0.5};<br class="">Point(15) = {0.5, -0.5, 0.5};<br class=""><br class="">// ellipsoid, lines<br class="">Ellipse(13) = {10, 9, 11, 11};<br class="">Ellipse(14) = {12, 9, 11, 11};<br class="">Ellipse(15) = {12, 9, 13, 13};<br class="">Ellipse(16) = {13, 9, 10, 10};<br class=""><br class="">Ellipse(17) = {14, 9, 10, 10};<br class="">Ellipse(18) = {14, 9, 11, 11};<br class="">Ellipse(19) = {14, 9, 12, 12};<br class="">Ellipse(20) = {14, 9, 13, 13};<br class=""><br class="">Ellipse(21) = {15, 9, 10, 10};<br class="">Ellipse(22) = {15, 9, 11, 11};<br class="">Ellipse(23) = {15, 9, 12, 12};<br class="">Ellipse(24) = {15, 9, 13, 13};<br class=""><br class=""><br class="">// line loops<br class="">Line Loop(1) = {16,17,-20};<br class="">Surface(1) = {1};<br class=""><br class=""><br class="">_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></body></html>