From: Arjen M. <arj...@wl...> - 2003-08-25 06:43:23
|
Maurice LeBrun wrote: > > > Polygon clipping is fairly complex. The issue really raised its head when I > implemented zooming in the plplot TK interface and started doing a lot of > shade plotting, way back in '94 or so. I worked on it for a while before > giving up due to lack of progress even though there were still a lot of > problems with it. As an example, run "x16c -dev tk", zoom in on a section and > then pan around. > > Anyway I decided to take another look at the code and noticed right away > problems with the existing approach. Emboldened, I set about to improve it > and now am happy to say it works much better than before. Grab the latest > src/plline.c from cvs HEAD and see if the new code fixes your problem. > > Note it still does not work perfectly -- at a sufficiently high level of > zooming we start to get clipping problems again. These I suspect are due to a > fidelity problem, either in clipline() or somewhere else. Anyway no more time > to work on it for now. > > That sounds great. When I wrote the original e-mail, I started thinking how this could be improved - I soon realised that a completely general solution is very difficult/tedious. I will have a look at the new source. Thanks for looking into it. Regards, Arjen |