From: Ethan M. <merritt@u.washington.edu> - 2004-07-06 00:09:19
|
On Monday 05 July 2004 05:43 am, Hans-Bernhard Broeker wrote: > IMHO clipping has to be the duty of the callers of map3d_xy, because only > they can possibly know what the right reaction should be, or at least > output an intelligible errors message if they can't seem to find a > reasonable reaction. For now I have put tests for wrap-around (negative value stored in unsigned int) into the two high-level callers place_labels3d() and place_arrows3d(). If wrap-around has occurred, the arrow or label is skipped altogether. This is not true clipping, but it does catch a potentially fatal error that has already been made. Retro-fitting general tests against the current plot boundaries, coupled with proper clipping of line segments, will have to wait for a more general overhaul. |