[vtk-developers] vtkVectorText -- to deprecate or not?

David Gobbi david.gobbi at gmail.com
Wed Oct 17 09:09:49 EDT 2012


On Wed, Oct 17, 2012 at 6:52 AM, David Lonie <david.lonie at kitware.com> wrote:

> I should point out here that I added a vtkPath class, which stores a
> path consisting of Bezier curves, a while back, as well as the ability
> to generate these paths from strings. Both FreeTypeUtilities and
> MathTextUtilities support this, and this is actually how most
> characters are stored in many font formats.
>
> Seems like string->path->polydata would be one way forward, though
> we'll need to write a filter that strokes the path into polydata. This
> would at least get us to an outline of the text. Filling in the
> outlines and getting the cells right would be tricky...But there's
> probably an algorithm out there that can do this. That (along with the
> higher demands on CPU) would be the biggest challenge.

I have a class in gerrit that can fill the outlines, i.e. it can fill
contours that contain holes.  I can update it and put it up for
review again:
http://review.source.kitware.com/#/c/3785/

 - David



More information about the vtk-developers mailing list