Outcode Clipping of Lines
First, let's consider line segments.
if (outcode1 == 0 && outcode2 == 0) then
line segment is inside
else
if
(outcode1 & outcode2 ! = 0) then
line segment is outside
else
don't know
endif
Notice that the test cannot conclusively state whether the segment crosses the clip region.
This might cause some segments that are located entirely outside of the clipping volume to
be subssequently processed.
Is there a way to modify this test so that it can eliminate these false positives?
|
|
|