![](https://secure.gravatar.com/avatar/736391b36e43bf737d08eab155a51d59.jpg?s=120&d=mm&r=g)
When applying "objects to pattern", is there a way to tell inkscape to define the height and with of the resulting pattern by the position of the nodes only, neglecting everything else which extends beyond the nodes (e.g. parts of the line depending on the strokewidth)?
Why? I found out that I can eliminate the problems I had with offsets in pattern-fills (see my earlier posts) by adjusting the height and width of the pattern to the heigth and width defined by the nodes of the lines which the pattern is based on.
On Thu, 30 Nov 2006 11:10:51 +0100, Henning Lorenz wrote:
I discovered now the reason for the mismatch:
The problem is that inkscape takes the path AND its stroke width into account when processing a tile clone, i.e. the offset of the new rows and columns is not based on the centre of the line but on the outline of it which depends on the stroke width (see attached screen shot). However, to produce a pattern which is good for a patternfill it is necessary that this process is based only on the centre of the line, i.e. the offset of the new rows and columns is independent from stroke-width.
(Screenshot: thin line results in small offset, thick line results in larger offset - take the grid as a reference; to make the pattern suitable for a fill pattern each line has to be place on the grid without offset)
A solution is to diminish stroke width to 0, do the tile-clone, and then adjust the stroke width to the wished value. However, the problem reoccurs when this pattern is used as a fill pattern! Even there the stroke width is taken into account! This could be easily fixed with a clipping mask. But the latter does not work with the command "objects to pattern", it results in an empty pattern.
Henning
On Wed, 29 Nov 2006 13:37:39 -0500, bulia byak wrote:
On 11/29/06, Henning Lorenz
<henning.lorenz-wmbx2sCzPmCzQB+pC5nmwQ@...2053...> wrote:
Then I changed the colour in the source, but there is a principal question: Is something wrong and if so, what? And why doesn't this affect the "pattern-pinstripes-diagonal" pattern? Maybe I just missed an important point in constructing patterns in inkscape?
It's hard to visualize what you're talking about without a sample or screenshot. However one thing you should be aware of is this: "Object to pattern" creates a rectangular pattern with its sides parallel to x/y axes. Only after that can you rotate or skew it. So if your existing pattern is rotated or skewed, then converting it to objects and then back to pattern will not give the same result. If you want to edit it, first rotate the pattern so it's rectangular, convert to objects, edit, convert to pattern, and rotate back to the original angle.
Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=D... Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user