mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 05:24:02 +00:00
Add a todo for the geometry covered_by box suboptimal current implementation
This commit is contained in:
parent
69069a2285
commit
016e23b85a
@ -68,6 +68,8 @@ struct geometry_covered_by_box
|
|||||||
using point_type = typename point_type<Geometry>::type;
|
using point_type = typename point_type<Geometry>::type;
|
||||||
using box_type = model::box<point_type>;
|
using box_type = model::box<point_type>;
|
||||||
|
|
||||||
|
// TODO: this is not optimal since the process should be able to terminate if a point is found
|
||||||
|
// outside of the box without computing the whole envelope
|
||||||
box_type box_areal;
|
box_type box_areal;
|
||||||
geometry::envelope(geometry, box_areal, strategy);
|
geometry::envelope(geometry, box_areal, strategy);
|
||||||
return strategy.covered_by(box_areal, box).apply(box_areal, box);
|
return strategy.covered_by(box_areal, box).apply(box_areal, box);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user