|
Geometry : |
Subject: [ggl] box_range is not a valid range
From: feverzsj
Date: 2011-04-30 21:35:38
hi, Barend
>Thanks for the report. Indeed, fixed it (for segment_range it was already
>done). Fixed in Trunk.
Confirmed. Thanks.
While wokring out my own box2d_range/box2d_iterator to work around this, I
found ggl's box_iterator is not so lightwigth to be a iterator, fot it
carrying 4 points everywhere.
It may be better to store the 4 points in the box_range, and only store a
pointer to these points and a index in box_iterator. Similar solution also
applies to segment_range/segment_range_iterator.
regards, zsj
Geometry list run by mateusz at loskot.net