Skip to main content
Question

Process list in NeighborFinder result

  • March 10, 2015
  • 2 replies
  • 72 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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 10, 2015
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.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 11, 2015
..or keep relevant attributes and then explode the list ..

 

you can do test then