<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Dear Nicolas</div><div><br></div><div>I asked the very same thing here: <a href="https://gitlab.onelab.info/gmsh/gmsh/-/issues/450">https://gitlab.onelab.info/gmsh/gmsh/-/issues/450</a></div><div>The answer is here: <a href="https://gitlab.onelab.info/gmsh/gmsh/-/issues/644">https://gitlab.onelab.info/gmsh/gmsh/-/issues/644</a></div><div><br></div><div>TLDR; perform a boolean fragments operation between the line and the point:</div><div><br></div><div><pre class="code highlight" lang="plaintext"><span id="LC1" class="line" lang="plaintext">SetFactory("OpenCASCADE");</span>
<span id="LC2" class="line" lang="plaintext">Point(1) = {0,0,0, 0.1};</span>
<span id="LC3" class="line" lang="plaintext">Point(2) = {5,0,0, 0.1};</span>
<span id="LC4" class="line" lang="plaintext">Line(1) = {1,2};</span>
<span id="LC5" class="line" lang="plaintext">Point(3) = {1,0,0, 0.2};</span>
<span id="LC6" class="line" lang="plaintext">BooleanFragments{ Point{3}; Delete; }{ Curve{1}; Delete; }</span>
</pre></div><div><br></div><div>On Fri, 2020-05-15 at 09:33 +0200, Karin&NiKo wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr">Dear Gmsh Gurus,<div><br></div><div>I am trying to embed a point lying on an edge of a volume, so that a node be generated there in the mesh.</div><div><br></div><div>I am providing with a simple example, using the OCC Factory. </div><div>I have tried several solutions (see test.geo) given that the Split command is unvailable with OCC Factory but they all fail.</div><div><br></div><div>I must be missing something...</div><div><br></div><div>Thanks for your help.</div><div>Nicolas</div></div>
<pre>_______________________________________________</pre><pre>gmsh mailing list</pre><a href="mailto:gmsh@onelab.info"><pre>gmsh@onelab.info</pre></a><pre><br></pre><a href="http://onelab.info/mailman/listinfo/gmsh"><pre>http://onelab.info/mailman/listinfo/gmsh</pre></a><pre><br></pre></blockquote></body></html>