<div dir="ltr">Hi Normanius,<div><br></div><div>Put them through vtkAppendPolyData and then through vtkContourTriangulator:</div><div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/ContourTriangulator">https://lorensen.github.io/VTKExamples/site/Cxx/Modelling/ContourTriangulator</a></div><div><br></div><div>It is also possible to do this with vtkDelaunay2D, but it is more complicated.</div><div><br></div><div>The vtkTriangleFilter does something quite different from this.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 23, 2018 at 12:22 PM, normanius <span dir="ltr"><<a href="mailto:juch@zhaw.ch" target="_blank">juch@zhaw.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Let's be given two polylines in a plane as shown in the figure below. I<br>
assume that these two lines are not intersecting, but can have a generic<br>
shape (so they may be non-convex). Note that the number of points varies<br>
between the two lines. (In my example, the objects have been created using<br>
vtkRegularPolygonSource)<br>
<br>
Do you have an idea how I can triangulate the ring that is defined by the<br>
inner and outer polyline in vtk? (See second image, for an idea)<br>
<br>
Combining the polylines with vtkAppendPolyData does not work, because<br>
vtkTriangleFilter then would triangulate the two polylines separately. I<br>
guess the right way would be to create a polygon object that is composed of<br>
the two lines in a "clever way" and then to call vtkTriangleFilter on this<br>
data, but I could not manage.<br>
<br>
Many thanks for your inputs!<br>
<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/t341102/Screen_Shot_2018-02-23_at_19.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/file/t341102/Screen_Shot_<wbr>2018-02-23_at_19.png</a>><br>
<<a href="http://vtk.1045678.n5.nabble.com/file/t341102/triangulated.png" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/file/t341102/triangulated.<wbr>png</a>><br></blockquote></div></div></div></div>