[vtkusers] How to triangulate two non-intersecting polylines (in 2D)
bill.lorensen at gmail.com
Fri Feb 23 14:33:16 EST 2018
Look at this example.
On Feb 23, 2018 11:22 AM, "normanius" <juch at zhaw.ch> wrote:
> Let's be given two polylines in a plane as shown in the figure below. I
> assume that these two lines are not intersecting, but can have a generic
> shape (so they may be non-convex). Note that the number of points varies
> between the two lines. (In my example, the objects have been created using
> Do you have an idea how I can triangulate the ring that is defined by the
> inner and outer polyline in vtk? (See second image, for an idea)
> Combining the polylines with vtkAppendPolyData does not work, because
> vtkTriangleFilter then would triangulate the two polylines separately. I
> guess the right way would be to create a polygon object that is composed of
> the two lines in a "clever way" and then to call vtkTriangleFilter on this
> data, but I could not manage.
> Many thanks for your inputs!
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/
> Please keep messages on-topic and check the VTK FAQ at:
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers