<div dir="ltr"><div>Have a look at vtkvmtkPolyDataScissors in <a href="http://www.vmtk.org">www.vmtk.org</a><br><br></div>good luck!<br>sebastian<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 10:42 AM, Martin Vymazal <span dir="ltr">&lt;<a href="mailto:martin.vymazal@vki.ac.be" target="_blank">martin.vymazal@vki.ac.be</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:&#39;Roboto&#39;;font-size:9pt;font-weight:400;font-style:normal">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Hello Alex,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">thank you for your reply. My surface is a 3D surface, but I want to split it into several patches given by this line(s). That&#39;s why I&#39;m speaking about cutting by line and not plane/box/sphere etc. The (poly)line is already given as a sequence of starting and ending points of several straight segments. Basically all I&#39;m asking is whether vtk could do proper modification to the connectivity tables because the cut is going to modify some existing and introduce new triangles. From your answer I have the feeling that this is unfortunately not possible.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Best regards,</p><span class="HOEnZb"><font color="#888888">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">  Martin Vymazal</p></font></span><div><div class="h5">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On Wednesday 17 of July 2013 14:36:19 Alex Malyushytskyy wrote:<br></p>
<p style="margin-top:12px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Cutter will change the dimensions of the cells when Clipping does not..<br>Assuming you work with polydata you should check <a href="http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html" target="_blank"><span style="text-decoration:underline;color:#1a1a1a">vtkClipPolyData</span></a><br>
</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><a href="http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html" target="_blank"><span style="text-decoration:underline;color:#1a1a1a">http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html</span></a><br>
It is important to remember that in VTK you are always dealing with 3d data<br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">so you define plans not line as a clipping function.<br><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">Regards,<br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">   Alex<br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px"><br><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:40px;margin-right:40px;text-indent:0px">On Wed, Jul 17, 2013 at 3:46 AM, Martin Vymazal &lt;<a href="mailto:martin.vymazal@vki.ac.be" target="_blank"><span style="text-decoration:underline;color:#1a1a1a">martin.vymazal@vki.ac.be</span></a>&gt; wrote:<br>
</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:45px;margin-right:40px;text-indent:0px">Hello,<br><br> I would like to ask if  I can slice elements in triangulation. Suppose my<br>input is a line on a triangulated surface (given as a sequence of vertex pairs<br>
indicating which mesh edges the line should cut, for example), I would like to<br>split the triangles that the line passes through, eventually introducing new<br>triangles in the mesh. Apparently there is the class vtkCutter, but I&#39;m not<br>
sure that that&#39;s what should be used. Could you please point me to some<br>examples if there are any? How should I feed my input line to vtk? Create a<br>polyline perhaps?<br><br>Thank you very much,<br><br> Martin Vymazal<br>
_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank"><span style="text-decoration:underline;color:#1a1a1a">www.kitware.com</span></a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank"><span style="text-decoration:underline;color:#1a1a1a">http://www.kitware.com/opensource/opensource.html</span></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"><span style="text-decoration:underline;color:#1a1a1a">http://www.vtk.org/Wiki/VTK_FAQ</span></a><br><br>
Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank"><span style="text-decoration:underline;color:#1a1a1a">http://www.vtk.org/mailman/listinfo/vtkusers</span></a><br>
</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br><br></p></div></div></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>