<div dir="auto">Look at this example.<div dir="auto"><div style="font-family:sans-serif;font-size:12.8px" dir="auto"><div style="margin:16px 0px"><div dir="auto"><br></div></div><div style="height:0px"></div></div><div style="height:104px" dir="auto"><font face="sans-serif"><span style="font-size:12.8px"><a href="https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/RuledSurfaceFilter/">https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/RuledSurfaceFilter/</a></span></font></div><div style="height:104px" dir="auto"><font face="sans-serif"><span style="font-size:12.8px"><br></span></font></div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 23, 2018 11:22 AM, "normanius" <<a href="mailto:juch@zhaw.ch">juch@zhaw.ch</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
</blockquote></div></div>