[Gerbv-devel] [ gerbv-Bugs-2607102 ] Polygon disappears at certain zoom levels
Brought to you by:
spetm,
thepurlieu
From: SourceForge.net <no...@so...> - 2009-02-17 04:24:31
|
Bugs item #2607102, was opened at 2009-02-16 16:16 Message generated for change (Comment added) made by tblackmon You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=409538&aid=2607102&group_id=33921 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Drawing Engine Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Todd Blackmon (tblackmon) Assigned to: Nobody/Anonymous (nobody) Summary: Polygon disappears at certain zoom levels Initial Comment: In the included file, there is a polygon in the center when rendered at zoom to fit. But when zoomed in twice or more, it is no longer rendered. Sometimes if I put it at the edge of the screen, I can get closer before it disappears. I also cannot select it when it doesn't render I'm using the latest build, but it also happens with the Ubuntu release. I am using all the defaults for the build. The file was generated from the latest version of Altium Designer. Todd ---------------------------------------------------------------------- >Comment By: Todd Blackmon (tblackmon) Date: 2009-02-16 22:24 Message: Good fix. It works now. I was commenting while you were fixing it. Actually the rs274x spec pdf has an example of closing out a polygon in this fashion, so it's a valid method. BTW, that link on the main gerbv page appears to be broken. I had to find it elsewhere. Todd ---------------------------------------------------------------------- Comment By: Todd Blackmon (tblackmon) Date: 2009-02-16 22:16 Message: I've found a better definition of the problem now. It has to do with a polygon ending with a D02 code. If the origin is off-screen, it will not paint that polygon. I'm not familiar enough with the code base yet to find it, but I'm including an update of the test-polygon-fill-1.gbx file to show this error. The diamond uses a D02 code on it's own line, while the square ends its last coordinate with D02. If you pan the origin offscreen, they will both disappear. File Added: test-polygon-fill-1.gbx ---------------------------------------------------------------------- Comment By: Julian Lamb (thepurlieu) Date: 2009-02-16 22:07 Message: Good catch Todd. Altrium closes out poylgons in an uncommon fashion, and apparently I missed some bounding box calcs with it's method. Fixed in CVS...let me know if you still see problems with disappearing objects. The render optimization code was new in v2.2 and thus probably needs more testing. Cheers-- Julian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=409538&aid=2607102&group_id=33921 |