Question

Process list in NeighborFinder result

  • 10 March 2015
  • 2 replies
  • 2 views

Dear all,

 

 

I use a NeighborFinder to find points close to a polyline (segment). I also need to introduce a constraint on the matching: each points has an angle attribute. I then need to find for each segment the point with the same orientation as the point. I can do this with a tester, after having computed segment angle.

 

 

In my NeighborFinder, I set "Number of neighbors to find" to 5. It thus produces a list in output. Now, I am wondering how I can iterate over the list to find the point with the correct orientation (it is not always the closest candidate).

 

 

Hope you could help.

 

 

Best regards,

 

 

Asher

2 replies

Badge +3
You could

 

For each segment

 

Set  a index=0,

 

 max= listelementcounter

 

 and feed it to a listindexer within a custom loop to read the value, test value and cycle trough the index till max.
Badge +3
..or keep relevant attributes and then explode the list ..

 

you can do test then

Reply