« Return to Thread: svg transformations help

Re: svg transformations help

by Thomas Holder-3 :: Rate this Message:

Reply to Author | View in Thread

Hi Axel,

> ... but rotate an element which resides inside of a group things get
> more complicated. I tried with inkscape and found it will apply a
> matrix and also change the width and height and even the stroke-width

width and height and stroke-width won't change if you set "Store
transformation = Preserved" in Inkscape Preferences.

Concerning transformations inside groups: Let A be the transform matrix
of an object and B the accumulated transformations of all its parent
groups. The absolute transformation of the object is

   T = B * A

Now you want to transform this object by matrix C, gives you

   T' = C * T
      = C * B * A
      = B * B.inverse * C * B * A
      = B * A'

with

   A' = B.inverse * C * B * A

That's it :-)

Regards,
   Thomas

------------------------------------------------------------------------------
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel

 « Return to Thread: svg transformations help