[vtkusers] how to efficiently generate surf between 2 curves

Melvin Hadasht melvin.hadasht at free.fr
Mon Apr 22 08:33:36 EDT 2002


[Sorry to answer to myself],

on Mon, 22 Apr 2002 03:49:19 +0200
Melvin Hadasht <melvin.hadasht at free.fr> wrote:

 > I need to fill between two curves (actually outlines of a vector
 > character). I did not manage to find a solution that always works
 > correctly. The two contours are on the same plane.
 > 
 > For example, for the character 'e', I created a vtkCellArray
 > containing two cells: one for the outer contour of 'e' and one for
 > the inner contour. (the outer cell has the opposite orientation with
 > respect  to the inner one). To fill between them I used the
 > Delaunay2D triangulation. That worked for some letters but for some
 > others (like the 'e'), the triangulation is not done propely: the
 > triangles get outside of the outlines. It seems related to the
 > geometry of the outlines. Does anybody has a robust solution for this
 > pb? 

I found the pb: the middle horizontal bar of 'e' was represented as a
single long line, which created high aspect ratio triangles. The
solution was to break lines into smaller segments.

Zbohem (Croatian: Goodbye)

-- 
Melvin Hadasht



More information about the vtkusers mailing list