[vtkusers] Cut a triangulated surface with a line
Martin Vymazal
martin.vymazal at vki.ac.be
Thu Jul 18 06:10:27 EDT 2013
Hi Sebastian,
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.
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.
Thank you.
Martin
On Thursday 18 of July 2013 10:55:32 sebastian ordas wrote:
Have a look at vtkvmtkPolyDataScissors in www.vmtk.org[1]
good luck!sebastian
On Thu, Jul 18, 2013 at 10:42 AM, Martin Vymazal <martin.vymazal at vki.ac.be[2]>
wrote:
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[3]
_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[4]
http://www.kitware.com/opensource/opensource.html[5]
http://www.vtk.org/Wiki/VTK_FAQ[6]
http://www.vtk.org/mailman/listinfo/vtkusers[7]
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[7]
--------
[1] http://www.vmtk.org
[2] mailto:martin.vymazal at vki.ac.be
[3] http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html
[4] http://www.kitware.com
[5] http://www.kitware.com/opensource/opensource.html
[6] http://www.vtk.org/Wiki/VTK_FAQ
[7] http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130718/5b83beb4/attachment.htm>
More information about the vtkusers
mailing list