Polygon Class

Boudewijn Rempt boud at valdyas.org
Wed Jul 6 14:54:33 CEST 2005

On Wednesday 06 July 2005 13:31, Michael Thaler wrote:
> Hello,
> I want to port the Cubism filter from gimp to Krita. The filter uses a
> polygon class. This class just stores points as double values and can
> rotate the polygon and translate the polygon. Is there any class that
> already does this in QT, KDE or Krita? If not it is simple to write this
> class, but I think it is more of more general use. Where should I put it
> then? In krita/core?

I'm not sure; QPoinArray together with QWMatrix does what you need, except 
only with ints. You'd need a vector of KisPoints -- which we have, KisVec, 
and transform/translate function. So, there are a number of components 
already, but the whole is lacking.

Boudewijn Rempt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20050706/84878d1c/attachment.pgp

More information about the kimageshop mailing list