Polygon Clipping
Polygon Clipping
Polygon Clipping
Before clipping
Save {v2} |
V2
sutherland- Hodgman Polygon Clipping
3. If the first vertex of the edge is inside the window
and second vertex is outside then only the intersection
point of the polygon edge with the window boundary
is added to the output vertex list.
Save {v’1}
Vi
Ssutherland- Hodgman Polygon Clipping
4. If the both vertices of the edge are outside the
window. Then nothing is added to the output vertex
list. v1
Save {0}
V2
eC Area Clipping (polygons)
To clip a polygon, we cannot directly apply
a fline-clipping method to the individual
polygon edges because this approach would
produce a_ series of unconnected line
segments as shown in figure .
* Area Clipping (polygons)
The clipped polygons must be a bounded area after
clipping as shown in figure.
Concave Polygon _- : A \
/ \
h l/ \ |
Veccccccccccccscsocesecs
J Sutherland-Hodgman Polygon Clipping
3./f the first vertex is inside the window
boundary and the second vertex is
outside.
10
eC Sutherland-Hodgman Polygon Clipping (Example)
We illustrate this algorithm by processing the area in
figure against the left window boundary.
12
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: