7
7.1
1
2
1
2
1
2
7.2
1
2
3
PQ
zz=zminz=zmaxzminzzmaxzxyxyzXYZZz
zmin(P)zmax(P)Pz
L
L
zminPzmin(P)QL – {P}
PQ
1Qzmax(P)<zmin(Q)PL = L – {P},
2Qzmax(P)>zmin(Q)
PQP’Q’PQL = L – {P}
PQPQL = L – {P}
QPPQL = L – {P},
PQP’Q’P’Q’PQL = L – {P}
PQPPQL = L – {P}
PQ
7.3 Z(Z-Buffer)
FBZBzzZBZBz
{ for(x<0;x<xmax;x++)
for (y<0;y<ymax;y++)
{ FB(x,y)
ZB(x,y)}
for()
{
for((x,y) )
{ z(x,y);
if (z(x,y)>ZB(x,y))
{ z(x,y)ZB(x,y);
(x,y)FB(x,y)
} } } }
7.4 Z
ZBzZBFB
{ y=yi for(x<0;x<xmax;x++)
{ FB(x,yi)
ZB(x,yi) }
for()
{
for((x,yi) )
{ z(x,yi);
if (z(x,yi)>ZB(x,yi))
{ z(x,yi)ZB(x,yi);
(x,yi)FB(x,yi)
7.5
{ for(x<0;x<xmax;x++)
for (y<0;y<ymax;y++)
{ (x,y)
for
if (
(x,y)
else
(x,y)
}
7.1
1
2
1
2
1
2
7.2
1
2
3
PQ
zz=zminz=zmaxzminzzmaxzxyxyzXYZZz
zmin(P)zmax(P)Pz
L
L
zminPzmin(P)QL – {P}
PQ
1Qzmax(P)<zmin(Q)PL = L – {P},
2Qzmax(P)>zmin(Q)
PQP’Q’PQL = L – {P}
PQPQL = L – {P}
QPPQL = L – {P},
PQP’Q’P’Q’PQL = L – {P}
PQPPQL = L – {P}
PQ
7.3 Z(Z-Buffer)
FBZBzzZBZBz
{ for(x<0;x<xmax;x++)
for (y<0;y<ymax;y++)
{ FB(x,y)
ZB(x,y)}
for()
{
for((x,y) )
{ z(x,y);
if (z(x,y)>ZB(x,y))
{ z(x,y)ZB(x,y);
(x,y)FB(x,y)
} } } }
7.4 Z
ZBzZBFB
{ y=yi for(x<0;x<xmax;x++)
{ FB(x,yi)
ZB(x,yi) }
for()
{
for((x,yi) )
{ z(x,yi);
if (z(x,yi)>ZB(x,yi))
{ z(x,yi)ZB(x,yi);
(x,yi)FB(x,yi)
7.5
{ for(x<0;x<xmax;x++)
for (y<0;y<ymax;y++)
{ (x,y)
for
if (
(x,y)
else
(x,y)
}