[vtkusers] How to triangulate two non-intersecting polylines (in 2D)
david.gobbi at gmail.com
Fri Feb 23 14:31:31 EST 2018
Put them through vtkAppendPolyData and then through vtkContourTriangulator:
It is also possible to do this with vtkDelaunay2D, but it is more
The vtkTriangleFilter does something quite different from this.
On Fri, Feb 23, 2018 at 12:22 PM, 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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers