rounding error in cubic Beziers?
"David Dailey" <[email protected]> Thu, 27 Feb 2014 08:48:52 -0500
| Newsgroups | gmane.text.xml.svg.devel |
|---|---|
| Message-ID | <000001cf33c2$a6a029a0$f3e07ce0$@net> |
Hi folks, In the file at http://cs.sru.edu/~ddailey/SwirlRoundPat.svg , I think there should have no gaps between the tiles in the four-tile tessellation. Do make the gaps visible and truly annoying, I've animated a pattern underneath. You'll note that, as probably expected, the gaps are most pronounced at points of maximum change in slope of the curve. Before I raise this question of whether or not these gaps should be "acceptable" (I rather think they shouldn't be, since they are wider than a pixel and reflect rounding error, I think, in the calculation of the coordinates of the Bezier curves) I wanted to see if there are magical controls that could be applied to minimize the problem. I tried shape-rendering="geometricPrecision" on the single path (re-used rotated, grouped and reused again) thinking that that might tell browsers that I really don't want the gaps in my tiling, but I haven't used that before and am not sure I did it right, or if, in fact, it actually does anything. See also http://cs.sru.edu/~ddailey/fading/slides/animSwirl2c.svg for a fun use of this particular tessellation. Cheers David