I would rather use a transform to change the height of the implicit function or some boolean operation with planes to limit it if it is unbounded...<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 11:04 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@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 class="gmail_quote"><div><div class="h5">On Mon, Nov 5, 2012 at 11:01 AM, David Higuita <span dir="ltr">&lt;<a href="mailto:david.higuita.75@gmail.com" target="_blank">david.higuita.75@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>HI, MY NAME IS DAVID, I&#39;M FROM COLOMBIA, I&#39;M WORKING WITH CLIPPING FUNCTIONS, AND I HAVE A CODE THAT MAKE IT, BUT IN THE CODE WE NEED TWO OBJECTS:</div><div><br></div><div>vtkCylinder AND vtkCylinderSource</div>


<div><br></div><div>AND IN THE WORKING OF CODE WE NEED GET AN IMPLICIT FUNCTION AND THE CODE DO IT WITH THE OBJECT vtkCylinder</div><div>BUT IN THE RESULT WE CAN&#39;T CHANGE THE HEIGHT (of course) </div><div>. THE QUESTION IS ¿CAN WE GET THE IMPLICIT FUNCTION FROM AN OBJECT vtkCyllinderSource? TO CHANGE THE HEIGHT</div>


<div><br></div><div><br></div><div><br></div><div>THIS IS PART OF CODE:</div><div><br></div><div><br></div><div>   <font color="#009900">sphere = vtk.vtkCylinderSource()</font></div><div><font color="#009900">    sphere.SetRadius(radio)</font></div>


<div><font color="#009900">    sphere.SetCenter(F[0][0],F[0][1],F[0][2])</font></div><div><font color="#009900">    sphere.SetHeight(altura)</font></div><div><font color="#009900"><br></font></div><div><font color="#009900">    spheres = vtk.vtkCylinderSource()</font></div>


<div><font color="#009900">    spheres.SetRadius(radio)</font></div><div><font color="#009900">    spheres.SetCenter(F[0][0],F[0][1],F[0][2])</font></div><div><font color="#009900">    spheres.SetHeight(altura)</font></div>


<div><font color="#009900">    spheres.SetResolution(100)</font></div><div><font color="#009900">    </font></div><div><font color="#009900">    cliper = vtk.vtkClipPolyData()</font></div><div><font color="#009900">    cliper.SetInput(reader.GetOutput()) # original: reader</font></div>


<div><font color="#009900">    cliper.SetClipFunction(sphere) #tenia sphere</font></div><div><font color="#009900">    cliper.GenerateClipScalarsOn()</font></div><div><font color="#009900">    cliper.SetValue(0.0) </font></div>


<div><br></div><div>WE NEED GET THE IMPLICIT FUNCTION (SetClipFunction(sphere)).</div><div><br></div><div>¿CAN YOU HELP US WITH LINKS AND TUTORIALS?</div><div><br></div><div>THANKS. </div></blockquote><div><br></div></div>
</div><div>
Please do not write in all caps.</div><div><br></div><div>I believe what you&#39;re looking for is this new class:</div><div><br></div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ImplicitPolyDataDistance</a><br clear="all">

<br>It will create an implicit function from a polydata.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Good luck,</div><div class="gmail_quote"><br>David</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>