Applying transformation matrix.
Hey all,
If I have an object that is currently transformed using a transformation matrix, and I want to remove the matrix, instead changing the co-ordinates of each point to be transformed is there some way to do that?
The reason for this is that I made an image for Wikipedia ( http://commons.wikimedia.org/wiki/Image:ClosedCylinderResonance.svg ) and it displays differently on their (and Firefox's) svg renderer than in Inkscape, specifically the sin waves appear thinner at the peaks than in the middle. I've worked out that this is due to the fact that they were stretched using a transformation matrix, and Firefox and Wikipedia apply that stretch to the strokes as well.
Of course I could just redo the sine waves, but since my "Plot equation" effect isn't working it would be a hassle.
Thanks Xavier
On 4/11/07, Xavier Snelgrove <webmaster@...2179...> wrote:
Hey all,
If I have an object that is currently transformed using a transformation matrix, and I want to remove the matrix, instead changing the co-ordinates of each point to be transformed is there some way to do that?
With default settings, you just need to do any transformation on the path, like moving it up and down by arrow keys. Inkscape will then embed the transform into the nodes of the path.
The reason for this is that I made an image for Wikipedia ( http://commons.wikimedia.org/wiki/Image:ClosedCylinderResonance.svg ) and it displays differently on their (and Firefox's) svg renderer than in Inkscape, specifically the sin waves appear thinner at the peaks than in the middle.
To clarify, this is a known bug in Inkscape. The strokes must indeed be distorted, per SVG standard.
On Thu, Apr 12, 2007 at 12:00:59AM -0300, bulia byak wrote:
On 4/11/07, Xavier Snelgrove <webmaster@...2179...> wrote:
Hey all,
If I have an object that is currently transformed using a transformation matrix, and I want to remove the matrix, instead changing the co-ordinates of each point to be transformed is there some way to do that?
With default settings, you just need to do any transformation on the path, like moving it up and down by arrow keys. Inkscape will then embed the transform into the nodes of the path.
I think he means apply the transformation to the nodes.
So, if you have a transform like [2 0 1] [0 2 0] and a point of (1,2)
We could collapse this to: [3,4]
I could really use something like this too.
Jeff
On 4/12/07, Jeffrey Brent McBeth <mcbeth@...1493...> wrote:
I think he means apply the transformation to the nodes.
So, if you have a transform like [2 0 1] [0 2 0] and a point of (1,2)
We could collapse this to: [3,4]
Yes, that is what I referred to. Try it with a path.
On Thu, Apr 12, 2007 at 12:11:36AM -0300, bulia byak wrote:
On 4/12/07, Jeffrey Brent McBeth <mcbeth@...1493...> wrote:
I think he means apply the transformation to the nodes.
So, if you have a transform like [2 0 1] [0 2 0] and a point of (1,2)
We could collapse this to: [3,4]
Yes, that is what I referred to. Try it with a path.
Wow, I hadn't noticed that before. Cool.
It would still be nice to be able to merge the possible transforms without having to convert to a path. (probably just the diagonal elements and the third column).
But, beggars can't be choosers.
Jeff
On 4/12/07, Jeffrey Brent McBeth <mcbeth@...1493...> wrote:
It would still be nice to be able to merge the possible transforms without having to convert to a path. (probably just the diagonal elements and the third column).
That depends on the type of object. For rects, for example, it does embed the scale and translate components of a trasform into the rect's x/y/w//h.
participants (3)
-
bulia byak
-
Jeffrey Brent McBeth
-
Xavier Snelgrove