Unit Iv: Hidden Surfaces or Lines Determination Algorithms and Curves
Unit Iv: Hidden Surfaces or Lines Determination Algorithms and Curves
\
|
=
+ + + =
=
(
(
(
(
(
(
(
(
t , P t t
i
P t P -t t P -t t P t t Q
G M T
P
P
P
P
t t t t Q
i
i i
i
b b
3
)) 1 ( ( t t +
Bzier curves
P
i
is called control point for the Bzier curve.
By connecting all control points with lines, we receive a
polygon - starting in P
0
and finishing in P
n
- that is called
Bzier polygon.
The Bzier curve is completely contained in the hull built
from the Bzier polygon.
Properties of Bezier Curve
The starting point of the curve is P
0
and the ending
point is P
n
.
Normally, the other control points are not
positioned on the curve.
The Bzier curve is completely contained in the
convex hull built from the control points.
If and only if all control points lie on the curve it is a
straight line.
The start (end) of the curve is tangent to the first
(last) section of the Bzier polygon.
Convex hull
Convex polygon formed by connecting the control points of the
curve.
Curve resides completely inside its convex hull
De Casteljau Algorithm
With the de Casteljau algorithm it is possible to
construct a Bzier curve or to find a particular point
on the Bzier curve
To construct a Bzier curve we have to find several
points through which the curve will go. These points
depend on a parameter t "element" 0,1
B-SPLine
FRACTALS
Fractals are geometric objects.
Many real-world objects like ferns are shaped like
fractals
Shapes containing copies of itself
Details present at any scale
A fractal consists of multiple (transformed) copies of
itself
Shape that is recursively constructed or self-similar
Go on for ever
Koch Fractals (Snowflakes)
Iteration 0 Iteration 1 Iteration 2 Iteration 3
Generator
1/3 1/3
1/3
1/3
1
Fractal Tree
Iteration 1 Iteration 2 Iteration 3 Iteration 4 Iteration 5
Generator
Fractal Fern
Generator
Iteration 0 Iteration 1 Iteration 2 Iteration 3