Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ouput an image for debugging #19

Open
xtuc opened this issue Aug 20, 2017 · 2 comments
Open

Ouput an image for debugging #19

xtuc opened this issue Aug 20, 2017 · 2 comments

Comments

@xtuc
Copy link

xtuc commented Aug 20, 2017

We are using your project in a non-graphical context and we are still in the developement phase. For the sake of debugging we would like to know the current state of the rtree.

Many libraries for Quadtree can ouput a PNG with all the points and regions.

There is a String method but it only returns "foo" instead of a string representation of the rtree.

@dhconnelly
Copy link
Owner

Wow, the library has been around for five years, and it has a few hundred users, but nobody has ever caught this! I guess I just forgot to implement it. Sorry for the trouble! The missing implementation is here: https://github.com/dhconnelly/rtreego/blob/master/rtree.go#L65

I'm not actively developing this library, but I happily accept pull requests to help out future users. If you'd like to provide a String() implementation (or something else clever), send me a PR.

@xtuc
Copy link
Author

xtuc commented Aug 21, 2017

Yes, I looked at the implementation and saw that, it's alright.

We are heavily relying on rtreego for our game engine: ByteArena (website isn't up sorry). You can expect some contributions from our side, even though your lib is already great.

I'll try to implement a graphical representation of the structure and submit a PR any time soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants