Hidden Line Removal Algorithm
Hidden Line Removal Algorithm
Find the pieces that are visible for the face whose projection is the non-convex polygon.
We assume that the list of t-values is given by 0.6, 0.4, 0.1, -0.3, -0.8, 1.4, as we find the
intersection of the line going through a a b . We order the list, -0.8, -0.3, 0.1, 0.4, 0.6,
1.4. We know that the first encounter is always from the outside, the second from the
inside, etc. So we can write that
Inside pieces: -0.8 to -0.3, 0.1 to 0.4, 06 to 1.4
Outside pieces: - to -0.8, -0.3 to 0.1, 0.4 to 0.6, 1.4 to .
Looking at the outside pieces, we must restrict ourselves to values of t between 0 and 1.
So we determine that we have two pieces:
Piece # 1: Given by the equation p = a (1 t ) + b t , 0 t 0.1.
Piece # 2: Given by the equation p = a (1 t ) + b t , 0.4 t 0.6.