Subject: [ggl] spacial index construction interface
From: Barend Gehrels (barend)
Date: 2011-02-23 06:22:10
I will answer in fragments.
> I've added test visualizing the rtree using GLUT, but only to the
> branch. To run it you'll neeed e.g. this:
Just had a look there.
First this is quite cool! ;-)
Second the BOOST_GEOMETRY_INDEX_RTREE_ENABLE_GL_DRAW define makes the
rtree a bit messy. Can you extract that somehow? I understand why it is
there now, because it calls itself recursively, but that might be solved
Third, hmm, I thought it would be nice to demonstrate the combination of
Boost.Geometry with GL as it is done with Qt
Meaning to convert a Boost.Geometry point automatically to a GL-point like
BOOST_GEOMETRY_REGISTER_POINT_2D_GET_SET(QPointF,double, cs::cartesian, x, y, setX, setY)
But in GL no point concepts but just c-arrays are used. Bruno once
created an adaption headerfile for them. Using them can draw a box like
GLfloat ll, lr, ul, ur;
geometry::assign_box_corners(it->first, ll, lr, ul, ur);
Not exactly better but just shorter and maybe nicer. Or alternatively it
can be used in a gl rectangle drawing routine.
Would be nice for the examples too (like Qt - glut worldmapper). Anyway
this whole point is not related to the spatial index at all so do with
it what you like.
-------------- next part --------------
An HTML attachment was scrubbed...
Geometry list run by mateusz at loskot.net