www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/03/06/16:16:04

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=Ii/iIA86ZzKE6EkQUP1PHw77IefxVtjOM+pu267DL+0=;
b=cVhDHrcHAdqwh+zQgGqumqR3Fu6BZHtjF8GKmghp5BgLs3oyVHKjmobXMzNkbSXNBv
OPPQGBdS0uTEDIGgBr2UrgKl+wySqK6LUmv5mh0pGOMnJL0lcaC38XpokMwFO4k9Zeff
GioNdw4m9ft4XWdKjNRqx70TTCkVGViFRr12gHnt37VmSxlpSVtWjQUS9fp+vAHOm3s9
QZR+cEhdbjmxuyePw1RIJpu6+UAe4HtBPpuY0VrORw6umD11KbT0jCF6QYbbGXNG7c8n
sK5VbEb1QoSJa+uNSSdjZWWVQLIBPTL5znsL8Qv1cuKWLRMU+HlKlxPIAD1q1hV5z5Vh
IsWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=Ii/iIA86ZzKE6EkQUP1PHw77IefxVtjOM+pu267DL+0=;
b=JNCH/qjNTeMA/pWCW53m42LQ/W8hKujkuUIYw0u/vLj0k/lX4rBUrBtvp41wUJi8G/
fEW/gi0qyM+CcIkvmM/EVoQUrjFlwdxPwP7P5+zXTgGeiXkFfyFnOX38SDFb9AlQSo6p
OZtb9roTOI7UlwhRUOCkapZOocwHVlQ1XuUKs2XZr6O3UPsfWG5ZF5jz4m6zoQttpdEA
SRj1vlbJ9Xyx5nY/CUmI0iO/yI23INwh90XZNxOXCq2+aU97vN6kwzoHHn8G/3CqWX3N
HS6z18QtAG5U6Dn9GwVHjEGwdh/vvjVgtGTAP95xeNoVFRBnxDaoMz0oEvzGY3RcTyQ4
PX/Q==
X-Gm-Message-State: AMke39limS1C5mSjebCnzDK683bAcQwyEF9hDNb1+sQX3oSrzKtXa2k62QgRb6uj49QOxcxnTLeEqdszuonZnQ==
X-Received: by 10.28.226.4 with SMTP id z4mr15214395wmg.135.1488834892903;
Mon, 06 Mar 2017 13:14:52 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CAGqyy=ZZB+Q6T0o4x8OP0LB3pBi0XPu3T+mW4-twTEZTxJsvAg@mail.gmail.com>
References: <CAGqyy=bjaaMDLLybUPdE=3h1eb4puBmHQuJL4YwFy8Nvyv5R9A AT mail DOT gmail DOT com>
<CAGqyy=a7SFSnSUeBSiZBYFidGB=k3B=DQfHZD=Z6YqLn6FEj3w AT mail DOT gmail DOT com>
<20170306212421 DOT a658cb36967460efbe4ba474 AT gmail DOT com> <CAGqyy=ZZB+Q6T0o4x8OP0LB3pBi0XPu3T+mW4-twTEZTxJsvAg AT mail DOT gmail DOT com>
From: "Luis de Arquer (ldearquer AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Mon, 6 Mar 2017 22:14:52 +0100
Message-ID: <CAGqyy=b_9t8aK9ZT+PpUhVrDxTbcfXJPdTfEy9e2-aCzbpyYhg@mail.gmail.com>
Subject: Re: [geda-user] Rubberband move keeping lines direction
To: geda-user AT delorie DOT com
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

Oh, all my code GPLv2 or later
I'll put the notice on the new files

2017-03-06 21:55 GMT+01:00, Luis de Arquer <ldearquer AT gmail DOT com>:
> Actually, I sort of implemented it, but I forgot to add the new files
> to the patch I sent!
> This time, I am attaching the full patch.
>
> 2017-03-06 21:24 GMT+01:00, Nicklas Karlsson
> (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]
> <geda-user AT delorie DOT com>:
>
>> I you remember original position line should be elongenated until it hit
>> the
>> moved line. You need to calculate the intersection point, it is a good
>> idea
>> to remember original point during move and if workin 45 or 90 degree
>> angles
>> on a grid rounding errors will probably not be a problem, I think anyway.
>>
>
> It's good you say that as that's exactly what I did! The movement
> vector goes from line mid point to neighbour lines' intersection. Have
> a look at FitCrosshairIntoGrid( ).
> But actually I am not fitting to the grid, and I gave up on 45/90 grid
> alignments; that's why I moved to floating point, and made it generic
> to any angle, which seems to work fine.
> Anyway, it should be enhanced to grid-align on 45/90 as you say.
> Maybe, if you could try the patch, you could let me know if it works
> as you expect
>
> I am trying to understand better how the Undo thing works, to complete
> the implementation.
>
> Luis
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019