Message 1 of 4
2d rectangle overlap find and filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am updating some 20 year old code in Autocad lisp that takes rectangles that
surround text items and searches for text rectangles that overlap and filters out text based on a third elevation criteria.
The raw data comes from scans of the sea floor and there can be 1000's of text rectangles. The existing rountine is just a loop that takes hours to run for large datasets.
I found this discussion http://www.gamedev.net/community/forums/topic.asp?topic_id=445256 in a game programming forum from a couple of years ago where an r-tree is suggested as a good solution for a similar problem. Is there a build in r-tree type function in Autocad or something similar does anyone have some r-tree vb.net code or some other suggestion of how I could use built in functions in Autocad to search quickly
for the overlapping rectangles.
Regards
Justin Ralston
I am updating some 20 year old code in Autocad lisp that takes rectangles that
surround text items and searches for text rectangles that overlap and filters out text based on a third elevation criteria.
The raw data comes from scans of the sea floor and there can be 1000's of text rectangles. The existing rountine is just a loop that takes hours to run for large datasets.
I found this discussion http://www.gamedev.net/community/forums/topic.asp?topic_id=445256 in a game programming forum from a couple of years ago where an r-tree is suggested as a good solution for a similar problem. Is there a build in r-tree type function in Autocad or something similar does anyone have some r-tree vb.net code or some other suggestion of how I could use built in functions in Autocad to search quickly
for the overlapping rectangles.
Regards
Justin Ralston
Regards
Justin Ralston
http://c3dxtreme.blogspot.com/
Justin Ralston
http://c3dxtreme.blogspot.com/