Computer Graphics Shear
Computer Graphics Shear
SHEAR
SHEAR DEFINED
Shear is a transformation that distorts the shape of an object such that
the transformed shape appears as if the object were composed of
internal layer that had been caused to slide over each other Internal
layer cause to slide over each other called shear
Transforms coordinate position as X' = x + shx . y , y = y
Shift in the position of objects relative to shearing reference lines are
equivalent to translations
Parallelism of lines and planes is preserved.
SHEAR
x x h y
y y
x
A shear transformation in the x-direction (along x) shifts the points
in the x-direction proportional to the y-coordinate.
The y-coordinate of each point is unaffected.
Shear along x
Matrix Representations
Shear along y
Two common shearing transformations are those that shift
coordinate x values and those that shift y values.
An x-direction shear relative to the x-axis is produced with
transformation matrix
where
shx = tan(90
)
= cot()
where
shy = tan()
HORIZONTAL SHEAR
NB: Equivalent to pulling faces in opposite directions
HORIZONTAL SHEARING
X = x + shx.y; y =
y
VERTICAL SHEARING
Y = y + shy.x; x = x