1 Nov 11:21
pgfmathparse can disrupt coordinate transformations?
Berteun Damman <berteun <at> gmail.com>
2008-11-01 10:21:48 GMT
2008-11-01 10:21:48 GMT
Hello, I was playing a bit with the Lindenmayer libary of PGF-CVS, and I wanted to use it to create a Penrose P3 Tiling [1] (ideally, something like this: http://berteun.nl/tmp/penrose.pdf); for which Wikipedia has an L-system. But, to make things fancier, I decided not to wait until the whole path was constructed, but to stroke and fill as soon as a ] was hit. In order to decide what to do, I used some calculations, but \pgfmathparse appears to be able to disrupt the coordinate transformations, because a single usage of it can make the tiles appear quite misplaced. The above hopefully explains why I would stroke the path in between. The culprit appears to be \pgfmathparse{and(0>0,0<1)}, if I remove the line, the picture comes out alright. Also, if I replace 0>0 by something which is true, like 1>0, the picture comes out alright. The problem only occurs if the left hand side of the and is false (the right hand side does not matter). This was as far as I was able to pin down the problem. I tried to create a smaller example without a Lindenmayer system, but I didn't succeed. I also tried the latest CVS build on Kjells site (31-10-2008), which still has the problem. I can work around it (and did to produce the picture in the PDF), but it appears to be a bug to me. Berteun [1] http://en.wikipedia.org/wiki/Penrose_tiling %%%(Continue reading)
RSS Feed