GetBBox() defines "normal" orientations in a container and then uses find() on this container. One could move this constant outside the function, but it's even better to avoid the container by encoding orientations with integers and using simple arithmetic tests.
GetBBox() defines "normal" orientations in a container and then uses find() on this container. One could move this constant outside the function, but it's even better to avoid the container by encoding orientations with integers and using simple arithmetic tests.