Boost logo

Geometry :

Subject: [ggl] box/box clipping
From: barend (barend.gehrels)
Date: 2010-12-28 05:18:15


Hi,

> box/box clipping is often used in lots of scene, while in ggl, using
> intersection is just too cumbersome for such simple job.
> Is it possible to add a dedicated function for such case?
> For example:
> bool clip_box(Box const& b1, Box const& b2, Box& clipped); // while no
> intersection found, returns false.
> or
> Box clip_box(Box const& b1, Box const& b2); // while no intersection
found,
> returns inverse infinite box.

OK, might be good idea. I will think about it.

Regards, Barend


Geometry list run by mateusz at loskot.net