Message 1 of 2
Loop pnt(n) test against pnt(n+1) & pnt(n-1)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a set of vertices extracted from a closed non-intersecting polyline and am struggling with this loop... I want to test each pnt against its neighboring points ... if the test fails then eliminate the point.
In pseudo code:
[code]
For i = 0 to UBound(pnts)
test(pnt(i), pnt(i+1), pnt(i-1))
if test fails then eliminate pnt(i)
Next i
[/code]
In pseudo code:
[code]
For i = 0 to UBound(pnts)
test(pnt(i), pnt(i+1), pnt(i-1))
if test fails then eliminate pnt(i)
Next i
[/code]