The included pattern "Packed Circles" uses two unnecessary circles

Bug #1252862 reported by FSund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Low
Unassigned

Bug Description

The included pattern "Packaged Circles" uses four circles to draw the pattern, but only two of the circles are necessary.

This is the default pattern (see the file /share/patterns/patterns.svg):
    <pattern
       inkscape:collect="always"
       patternUnits="userSpaceOnUse"
       width="1"
       height="1.73205080756"
       patternTransform="translate(0,0) scale(10,10)"
       id="Packedcircles"
       inkscape:stockid="Packed circles">
       <circle style="fill:black;stroke:none" cx="0" cy="0.5" r="0.5"/>
       <circle style="fill:black;stroke:none" cx="1" cy="0.5" r="0.5"/>
       <circle style="fill:black;stroke:none" cx="0.5" cy="1.36602540378" r="0.5"/>
       <circle style="fill:black;stroke:none" cx="0.5" cy="-0.366025403784" r="0.5"/>
    </pattern>

The following pattern produces the exact same results:
    <pattern
       inkscape:collect="always"
       patternUnits="userSpaceOnUse"
       width="1"
       height="1.73205080756"
       patternTransform="translate(0,0) scale(10,10)"
       id="Packedcircles"
       inkscape:stockid="Packed circles">
       <circle style="fill:black;stroke:none" cx="0" cy="0.5" r="0.5"/>
       <circle style="fill:black;stroke:none" cx="0.5" cy="1.36602540378" r="0.5"/>
    </pattern>

I haven't really looked into why, but it probably has to do with some symmetry operations.

Tags: pattern
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Low
Revision history for this message
jazzynico (jazzynico) wrote :

Tested on Windows XP, Inkscape trunk revision 12845.
Unfortunately, it doesn't work as expected here (see screenshot).

Revision history for this message
jazzynico (jazzynico) wrote :

... but almost works on 0.48.4. I only see a tiny spacing issue (in the original pattern it seems that the circles overlap).

Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
FSund (purity89) wrote :

Yeah, I've also discovered that when exporting to pdf and/or svg the circles don't always render properly. If this is caused by a bug in how the pdf/svg renders, or if it's rendering like it should and the version using four circles is the correct way to fix this, I don't know.

Revision history for this message
su_v (suv-lp) wrote :

The proposed improved pattern fill (in the test file attached to comment #3) fails to render as expected in other SVG viewers too (AFAICT they all agree with how current Inkscape trunk renders it):
- Firefox 25.0.1
- Chromium 33.0.1735.0 (239824)
- Opera 12.16 (Presto engine)
- Opera 18.0, Opera Developer 20.0
- Safari 6.1 (7537.71)
- Squiggle (Batik 1.7)
- rsvg-view-3 (librsvg 2.4.0)

Revision history for this message
su_v (suv-lp) wrote :

Typo:
- - rsvg-view-3 (librsvg 2.4.0)
+ - rsvg-view-3 (librsvg 2.40.0)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.