X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <1389720740.2055.10.camel@AMD64X2.fritz.box> Subject: Re: [geda-user] New router pictures/ polygon bug From: Stefan Salewski To: geda-user AT delorie DOT com Date: Tue, 14 Jan 2014 18:32:20 +0100 In-Reply-To: <20140114074240.GA2384@visitor2.iram.es> References: <1389363489 DOT 2427 DOT 5 DOT camel AT AMD64X2 DOT fritz DOT box> <1389632128 DOT 2414 DOT 50 DOT camel AT AMD64X2 DOT fritz DOT box> <52D4532C DOT 2040100 AT neurotica DOT com> <1389653121 DOT 2066 DOT 15 DOT camel AT AMD64X2 DOT fritz DOT box> <20140114074240 DOT GA2384 AT visitor2 DOT iram DOT es> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 2014-01-14 at 08:42 +0100, Gabriel Paubert wrote: > It's certainly not related to the GL drawing, I also see it with the > lesstif interface. I believe that this is a polygon dicer bug, and > that > the nm conversion has nothing to do with it. I have again tested with pcb version 20110918 by inserting following lines with an texteditor in a pcb board file fresh created by pcb program: Element["" "R0603" "R1" "" 4.0000mm 13.2500mm -0.7100mm 2.6350mm 1 100 ""] ( Pad[-0.1500mm 0.7500mm 0.1500mm 0.7500mm 0.6000mm 0.4000mm 0.7500mm "" "1" "square"] Pad[-0.1500mm -0.7500mm 0.1500mm -0.7500mm 0.6000mm 0.4000mm 0.7500mm "" "2" "square"] ) Layer(1 "component") ( Line[2.0000mm 12.5000mm 4.0000mm 12.5000mm 0.2000mm 0.4000mm "clearline"] Polygon("clearpoly") ( [0.7500mm 7.0000mm] [22.0000mm 7.0000mm] [22.0000mm 18.0000mm] [0.7500mm 18.0000mm] ) ) The bug is visible in the gerber files also. Then I converted mm unit to default 0.01mil unit with this vim command: :%s@\(\d\+\.\?\d\+\)mm@\=printf('%.0f',(str2float(submatch(1))*1.0e6/254.0))@g And the bug disappeared, also in the gerbers. Maybe it is not directly related to the conversion to nm as internal PCB units, but to rounding?