5CS4 Solution
5CS4 Solution
5CS4 Solution
Random Scan /VectorScan In this technique, the electron beam is directed only to the part of the
screen where the picture is to be drawn rather than scanning from left to right and top to bottom as
in raster scan. It is also called vector display, stroke-writing display, or calligraphic display. Picture
definition is stored as a set of line-drawing commands in an area of memory referred to as the
refresh display file. To display a specified picture, the system cycles through the set of commands
in the display file, drawing each component line in turn. After all the line-drawing commands are
processed, the system cycles back to the first line command in the list. Random-scan displays are
designed to draw all the component lines of a picture 30 to 60 times each second.
A convex polygon is defined as a polygon with all its interior angles less than 180°. This means
that all the vertices of the polygon will point outwards, away from the interior of the shape. Think
of it as a 'bulging' polygon. Note that a triangle (3-gon) is always convex .
A concave polygon is defined as a polygon with one or more interior angles greater than
180°. It looks sort of like a vertex has been 'pushed in' towards the inside of the polygon. Note that
a triangle (3-gon) can never be concave. A concave polygon is the opposite of a convex polygon.
See Convex Polygon.
Q7 What is Translations
It is a transformation that used to reposition the object along the straight line path from one
coordinate location to another. It is rigid body transformation so we need to translate wholeobject.
We translate two dimensional point by adding translation distance 𝒕𝒙and 𝒕𝒚to the original
coordinate position (𝒙, 𝒚) to move at new position (𝒙 ′ , 𝒚 ′ )as:
𝒙 ′ = 𝒙+𝒕𝒙 & 𝒚 ′ = 𝒚 +𝒕𝒚
Translation distance pair (𝒕𝒙,) is called a Translation Vector or Shift Vector. We can represent it
into single matrix equation in column vector as;
𝑷′ = 𝑷 + 𝑻
𝒙 ′= [ 𝒙 ] + [𝒕 𝒙 𝒕𝒚 ]
𝒚’= [ 𝒚 ] + [𝒕 𝒙 𝒕𝒚 ]
We can also represent it in row vector form as:
𝑷′ = 𝑷 + 𝑻
[𝒙 ′ 𝒚 ′ ]=[𝒙 𝒚]+ [𝒕𝒙 𝒕𝒚]
Q8 Distinguish between uniform Scaling and differential scaling
In any computer graphics software, there are 2 scaling factors – sx and sy. Uniform scaling takes
place when both these factors are allocated with the same value. ... Differential scaling takes place
when separate values are assigned to the scaling factors, sx and sy and often used in design
applications
Q9 List out various text clippings
Various techniques are used to provide text clipping in a computer graphics. It depends on the
methods used to generate characters and the requirements of a particular application. There are
three methods for text clipping which are listed below –
All or none string clipping
All or none character clipping
Text clipping
The following figure shows all or none string clipping –
In all or none string clipping method, either we keep the entire string or we reject entire string
based on the clipping window. As shown in the above figure, STRING2 is entirely inside the
clipping window so we keep it and STRING1 being only partially inside the window, we reject.
The following figure shows all or none character clipping –
This clipping method is based on characters rather than entire string. In this method if the string is
entirely inside the clipping window, then we keep it. If it is partially outside the window, then –
You reject only the portion of the string being outside
If the character is on the boundary of the clipping window, then we discard that entire
character and keep the rest string.
The following figure shows text clipping –
This clipping method is based on characters rather than the entire string. In this method if the string
is entirely inside the clipping window, then we keep it. If it is partially outside the window, then
You reject only the portion of string being outside.
If the character is on the boundary of the clipping window, then we discard only that portion
of character that is outside of the clipping window.
Q10 Write all steps involved in 3D transformation
It is the movement of an object from one position to another position. Translation is done using
translation vectors. There are three vectors in 3D instead of two. . Three-dimensional
transformations are performed by transforming each vertex of the object. Steps involved in 3D
transformation are
Modeling Transformation
Projection Transformation
Viewing Transformation
Workstation Transformation