[vtkusers] Cut a triangulated surface with a line

Alex Malyushytskyy alexmalvtk at gmail.com
Wed Jul 17 17:36:19 EDT 2013


Cutter will change the dimensions of the cells when Clipping does not..
Assuming you work with polydata you should check
vtkClipPolyData<http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html>
http://www.vtk.org/doc/nightly/html/classvtkClipPolyData.html
It is important to remember that in VTK you are always dealing with 3d data
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>wrote:

> Hello,
>
>  I would like to ask if  I can slice elements in triangulation. Suppose my
> input is a line on a triangulated surface (given as a sequence of vertex
> pairs
> indicating which mesh edges the line should cut, for example), I would
> like to
> split the triangles that the line passes through, eventually introducing
> new
> triangles in the mesh. Apparently there is the class vtkCutter, but I'm not
> sure that that's what should be used. Could you please point me to some
> examples if there are any? How should I feed my input line to vtk? Create a
> polyline perhaps?
>
> Thank you very much,
>
>  Martin Vymazal
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130717/ed5d0439/attachment.htm>


More information about the vtkusers mailing list