[vtkusers] Cut a triangulated surface with a line

Martin Vymazal martin.vymazal at vki.ac.be
Thu Jul 18 04:42:31 EDT 2013


Hello Alex,
 
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.

Best regards,

  Martin Vymazal

On Wednesday 17 of July 2013 14:36:19 Alex Malyushytskyy wrote:


Cutter will change the dimensions of the cells when Clipping does not..Assuming you 
work with polydata you should check vtkClipPolyData[1]

_http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html_

so you define plans not line as a clipping function.



Regards,


   Alex




On Wed, Jul 17, 2013 at 3:46 AM, Martin Vymazal <martin.vymazal at vki.ac.be[2]> 
wrote:


Hello,

 I would like to ask if  I can slice elements in triangulation. Suppose myinput is a line 
on a triangulated surface (given as a sequence of vertex pairsindicating which mesh 
edges the line should cut, for example), I would like tosplit the triangles that the line 
passes through, eventually introducing newtriangles in the mesh. Apparently there is 
the class vtkCutter, but I'm notsure that that's what should be used. Could you 
please point me to someexamples if there are any? How should I feed my input line to 
vtk? Create apolyline perhaps?

Thank you very much,

 Martin Vymazal_______________________________________________Powered by 
www.kitware.com[3]
http://www.kitware.com/opensource/opensource.html[4]
http://www.vtk.org/Wiki/VTK_FAQ[5]
http://www.vtk.org/mailman/listinfo/vtkusers[6]






--------
[1] http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html
[2] mailto:martin.vymazal at vki.ac.be
[3] http://www.kitware.com
[4] http://www.kitware.com/opensource/opensource.html
[5] http://www.vtk.org/Wiki/VTK_FAQ
[6] http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130718/6be2dc70/attachment.htm>


More information about the vtkusers mailing list