Scan 2set
Scan 2set
2. Concave Polygons:
• Interior angles can be greater than 180 degrees.
• Lines connecting two points in the polygon may have parts that remain
outside the polygon boundary.
2. Classify polygon with diagram.
Ans: A polygon is a closed polyline in which the initial and terminal points
coincide. It is a surface defined by three or more non-collinear vertices and is
represented as a number of line segments connected end to end to form a closed
figure.
Polygons are divided into two classes:
1. Convex Polygons:
• All interior angles are less than 180 degrees.
• Any line that connects two points in the polygon remains inside the polygon
boundary.
2. Concave Polygons:
• Interior angles can be greater than 180 degrees.
• Lines connecting two points in the polygon may have parts that remain
outside the polygon boundary.
In the above figure, we sum up the direction values from which the scan line is
passing then the total is 1 – 1 + 1 = 1; which is non-zero. So the point is said to be
an interior point.
5. What is jagged effect?
Ans: The "jagged effect" refers to the visual distortion that occurs when a computer
graphics system displays a primitive, such as a line or a curve, that appears as a
series of stair-stepped segments instead of a smooth line. This effect, commonly
known as aliasing, results from the under-sampling of the digital representation of
the graphics data, where coordinate points on an object are rounded to the nearest
integer pixel positions.
It occurs due to two main factors:
1. The finite addressability (discrete pixels) of the display device when
converting continuous lines/curves to discrete pixels.
2. Under-sampling during the conversion of geometric shapes into pixel
patterns on the screen.
Figure 3-23: Character outline method illustrated with lines and curves.
14. How do you generate image from scene?
Ans: To generate an image from a scene, two main steps are involved:
1. The scene description is converted into a set of geometric primitives with
associated attributes like color, texture, and lighting information.
2. The geometric primitives are then converted into pixel values through scan
conversion and rendering processes that determine the color and intensity of
each pixel in the final image.
The process involves transforming 3D scene descriptions into 2D pixel
representations that can be displayed on output devices like monitors, considering
factors like viewing position, lighting, and surface properties.
Better suited for smaller displays Better suited for larger screen displays
Assume that we have just plotted point (xk, yk). The next point is a choice between
(xk+1, yk) and (xk+1, yk-1). We would like to choose the point that is nearest to the
actual circle. By evaluating function at the above equation the midpoint between
the candidate pixels.