<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Roboto'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi Sebastian,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> this looks interesting. I also found your posts on vmtk mailing list. The points of my line that I want to use for cutting are not vertices of the surface mesh. However, they lie on the edges of the existing mesh. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> I saw that you were also trying to cut by an arbitrary cut (not following the mesh lines). Did you manage to do this? Could you please be so kind and elaborate a bit more on how you proceeded? Did you use this vtkPolyDataLineEmbedder? I cannot find any information about it.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Thank you.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Martin</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Thursday 18 of July 2013 10:55:32 sebastian ordas wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Have a look at vtkvmtkPolyDataScissors in <a href="http://www.vmtk.org"><span style=" text-decoration: underline; color:#1a1a1a;">www.vmtk.org</span></a><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">good luck!<br />sebastian<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:40px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Thu, Jul 18, 2013 at 10:42 AM, Martin Vymazal <<a href="mailto:martin.vymazal@vki.ac.be"><span style=" text-decoration: underline; color:#1a1a1a;">martin.vymazal@vki.ac.be</span></a>> wrote:<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hello Alex,</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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's why I'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'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:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Best regards,<span style=" color:#888888;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#888888;"> </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" color:#888888;">Martin Vymazal</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wednesday 17 of July 2013 14:36:19 Alex Malyushytskyy wrote:<br /></p>
<p style=" margin-top:12px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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"><span style=" text-decoration: underline; color:#1a1a1a;">vtkClipPolyData</span></a><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><a href="http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html"><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:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">so you define plans not line as a clipping function.<br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Regards,<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> Alex<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:85px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">On Wed, Jul 17, 2013 at 3:46 AM, Martin Vymazal <<a href="mailto:martin.vymazal@vki.ac.be"><span style=" text-decoration: underline; color:#1a1a1a;">martin.vymazal@vki.ac.be</span></a>> wrote:<br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:90px; margin-right:80px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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'm not<br />sure that that'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"><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"><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"><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"><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:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:45px; margin-right:40px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br />_______________________________________________<br />Powered by <a href="http://www.kitware.com"><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"><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"><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"><span style=" text-decoration: underline; color:#1a1a1a;">http://www.vtk.org/mailman/listinfo/vtkusers</span></a><br /><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br /><br /></p></body></html>