Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29875

Re: Untangle node positions "logic problem"

Newsgroups comp.lang.javascript
Date 2016-03-09 17:15 -0800
References (2 earlier) <1b4bed87-c220-45dd-874e-df113093da65@googlegroups.com> <0835c492-4d75-41b2-af21-a8ddb3332265@googlegroups.com> <cca37ef9-a13a-48f9-8725-08be4ef89d59@googlegroups.com> <eaba4b53-dbfe-4675-a46c-ace1cd9f446c@googlegroups.com> <9b79dba4-b072-4b0f-a274-2227282e7006@googlegroups.com>
Message-ID <6909efce-ec60-4713-bba2-1a8d545f2c5a@googlegroups.com> (permalink)
Subject Re: Untangle node positions "logic problem"
From jonas.thornvall@gmail.com

Show all headers | View raw


Den onsdag 9 mars 2016 kl. 22:41:33 UTC+1 skrev jonas.t...@gmail.com:
> Den onsdag 9 mars 2016 kl. 22:00:13 UTC+1 skrev jonas.t...@gmail.com:
> > Den onsdag 9 mars 2016 kl. 21:57:32 UTC+1 skrev jonas.t...@gmail.com:
> > > function untangle_links(){
> > > var j=0;var tempnode=0;
> > > var tnode=new Array();
> > > tnode[k]=0;
> > > 
> > >   for(var i=0;i<nodes.length-1;i++){
> > >     for(var k=0;k<tnode.length;k++){
> > >        if (arr[tempnode].nodelinks[j]==tnode[k]) {j++;}
> > >     }
> > >     tempnode=arr[tempnode].nodelinks[j];
> > >     tnode[tnode.length+1]=tempnode;
> > >     j=0;
> > >     tempX=arr[tempnode].rposX;
> > >     tempY=arr[tempnode].rposY;
> > >     arr[tempnode].rposX=arr[i+1].rposX;
> > >     arr[tempnode].rposY=arr[i+1].rposY;
> > >     arr[i+1].rposX=tempX;
> > >     arr[i+1].rposY=tempY;
> > >   }
> > > }
> > 
> > This is an example where a stepwise turbo pascal debugger would do miracles.
> > Because i would be able to find first link that goes wrong.
> 
> Or maybe i just missunderstood the draw circle function, well i should probably do one myself, but i thought it moved in degree steps for each node+

Something wrong with approach have to start over, it swap back and forth.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 11:15 -0800
  Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 11:59 -0800
    Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 12:40 -0800
      Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 12:54 -0800
        Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 12:57 -0800
          Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 13:00 -0800
            Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 13:29 -0800
            Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 13:41 -0800
              Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 17:15 -0800
              Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 17:21 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-09 22:52 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-10 13:09 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 00:24 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 00:49 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 00:53 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:21 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:29 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:41 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-11 01:58 -0800
                Re: Untangle node positions "logic problem" jonas.thornvall@gmail.com - 2016-03-13 04:19 -0700
                Re: Untangle node positions "logic problem" "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-03-13 17:22 +0100

csiph-web