What do you mean by from inside outside test in computer graphics?
Answers
Answered by
1
Answer:
Explanation:
Inside–outside test, a test used in computer graphics to determine if a point is inside or outside of a polygon.
Answered by
0
Inside-Outside test in computer graphics is:
- Given a polygon and a point 'p', to find 'p' whether it lies inside the polygon or not. The points lying on the border are considered as inside.
- The simple approach to check whether a point is inside or outside:
1.) Draw a horizontal line to the right of each point and extend it to
infinity.
2.) Count the number of times the lines intersect with polygon edges.
3.) A point lies inside the polygon if either count of intersections is odd
or point lies on the edge of polygon. If none of the conditions are
true, then point lies outside.
Similar questions