<div dir="ltr"><div>Hi José</div><div><br></div>Here is an example in Python, based on ClipCow.py, that clips the Parametric ellipsoid where the open clip is closed by triangulating the resultant complex polygons.<div>You will note that the cut edge is smooth. The clipping plane is coloured peacock and the cut ellipsoid tomato.</div>
<div><br></div><div>I hope that this will provide a good example for you to work from.</div><div><br></div><div>Regards</div><div>   Andrew</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Dec 20, 2013 at 4:52 AM, Jose Ignacio Prieto <span dir="ltr">&lt;<a href="mailto:joseignacio.prieto@gmail.com" target="_blank">joseignacio.prieto@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I solved the problem changing the axis from X to Z. But I still have an issue when the cutting plane is between the middle of the ellipsod and the start of the radius, the circle in the plane is bigger than the edges of the ellipsoid. I attach another pic</div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 19, 2013 at 11:52 AM, Jose Ignacio Prieto <span dir="ltr">&lt;<a href="mailto:joseignacio.prieto@gmail.com" target="_blank">joseignacio.prieto@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My point is that I am setting a cutting plane for the ellipsoid inside the parametric equation. I am leaving point x,y,z =0 after the plane, also with derivatives DU and DV. So in the borders it doesn&#39;t look nice with a resolution of 64 points. I attach a pic to let you get an idea. Thanks</div>


<div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Thu, Dec 19, 2013 at 11:39 AM, Jose Ignacio Prieto <span dir="ltr">&lt;<a href="mailto:joseignacio.prieto@gmail.com" target="_blank">joseignacio.prieto@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andrew, <div>I am contacting you because of the parametric ellipsoid class you created. It works fine for me with a resolution of 64 in the lines:</div>


<div><pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span style="font-style:italic">SetUResolution</span><span>(</span><span style="color:rgb(0,0,128)">1024</span><span>);</span></pre>




<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span style="font-style:italic">SetVResolution</span><span>(</span><span style="color:rgb(0,0,128)">1024</span><span>);</span></pre>




<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span style="font-style:italic">SetWResolution</span><span>(</span><span style="color:rgb(0,0,128)">1024</span><span>);</span></pre>




<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span>SetScalarModeToNone</span><span>();</span></pre>




<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span style="font-style:italic">GenerateTextureCoordinatesOff</span><span>();</span></pre>




<pre style="margin-top:0px;margin-bottom:0px"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span style="font-style:italic">SetParametricFunction</span><span>(</span><span style="color:rgb(128,0,0)">Ellipsoid</span><span>);</span></pre>




<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,0,0)">parametricFunctionSource</span><span>-&gt;</span><span style="font-style:italic">Update</span><span>();</span></pre>



<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;white-space:normal">but when I move to a bigger resolution like 1024 it gets completely slow. I tried moving to OpenGL mapper and actor but nothing. My graphics card is an AMD W7000 (fast) so its not hardware problem. What can I do to tweak it and get a smoother look?</span></pre>



<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;white-space:normal"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;white-space:normal">Thanks!</span></pre>


<span><font color="#888888">
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;white-space:normal"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">Ignacio Prieto</span></font></pre>



<pre style="margin-top:0px;margin-bottom:0px"><br></pre><div><br></div>-- <br>José Ignacio Prieto<br>Software developer</font></span></div><span><font color="#888888"><div>Biomedical Imaging Center</div><div>
Pontificia Universidad Catolica de Chile</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br>José Ignacio Prieto<br>celular(nuevo): 94348182
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>José Ignacio Prieto<br>celular(nuevo): 94348182
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________
</div>