arablau
07-29-2011, 03:28 PM
Hi everyone,
I have never used OpenGL but I think it might be the solution to a problem I have.
I want a way to store vertex data where I could add vertices to the structure and have it efficiently ignore vertices that are within a certain distance of vertices already saved.
I could do this brute force with a vector of vertices but checking the distance of every added vertex to all those that already exist is inefficient.
Does OpenGL offer some way to do this efficiently?
What other ways might I want to store 3D data so that I could update like this quickly?
Thanks for your help!
I have never used OpenGL but I think it might be the solution to a problem I have.
I want a way to store vertex data where I could add vertices to the structure and have it efficiently ignore vertices that are within a certain distance of vertices already saved.
I could do this brute force with a vector of vertices but checking the distance of every added vertex to all those that already exist is inefficient.
Does OpenGL offer some way to do this efficiently?
What other ways might I want to store 3D data so that I could update like this quickly?
Thanks for your help!