Curve Fractals 2ppt
Curve Fractals 2ppt
A Bezier curve
determined by defining polygon. Bezier curve have number of
properties that make them highly useful & covenant for curve &
surface design.
They are also easy to implement. Bezier curves are widely used in
various CAD systems. This is cubic Bezier curve because curves are
constructed as a sequence of cubic segments, rather than linear
ones & also avoids large number of calculations.
We can also observe that at the start of the curve, curve is tangent
to line connecting 1st & 2nd control points. Similarly at the end of the
curve, curve is tangent to line connecting 3rd & 4th control point.
Means to join 2 Bezier curves smoothly we have to place the 3rd &
4th control points of 1st curve on the same line specified by 1st & 2nd
control points of 2nd curve.
ALGORITHM
1.Get 4control points say
A(xA, yA) B(xB, yB) C(xC, yC) D(xD,
yD)
2.Divide curve represented by points A, B,C, D in two sections
xAB= (xA+xB)/2 xABC=(xAB+xBC)/2
The curve lies entirely within the convex hull formed by four
control points.
The convex hull property for Bezier curve ensures that
polynomial smoothly follows control points.
PROPERTIES OF BEZIER 5
The objects which are having smooth surface & regular shapes such
as lines, polygons, circle etc are generally described by using
equations. But natural objects such as mountain, trees, ocean waves,
cloud etc are having irregular shapes. So it is difficult to draw these
shapes by using normal equations.
So when we try to draw above natural shapes (such as trees, ocean
waves, so on… ) such rough, jagged(having a sharply uneven surface
or outline) surfaces are called FRACTALS.
Classification of fractals:-
1.SELF-SIMILAR
2.SELF-AFFINE
3.INVARIENT
Self-similar fractals:-
These are the fractals have parts those are scaled-down versions of
the entire object. In these fractals object subparts are constructed by
applying a scaling parameter ”S” to the overall initial shape.
CURVE FRACTALS 6
It is a choice of user to use the same scaling factor S for all
subparts, OR use different scaling factors for different scaled-down
parts of object.
Self-Affine Fractals:-
These fractals have parts those are formed with different scaling
parameters Sx , Sy, Sz in different co-ordinate directions.
Invariant Fractals:-
In these fractals, non-linear transformation is used. It includes self
squaring fractals which are formed with squaring functions in
complex space, & inverse fractals, form with inversion procedures. 7
The Hilbert's curve can be constructed by following successive
approximation. If square is divided into 4quadrant we can draw the 1 st
approximation to Hilbert’s curve by connecting centre points of each
quadrant -Fig-5-14
From above 3steps & fig. we can easily note some points about Hilbert’s
curve.1.If we initially extend approximation to Hilbert’s curve, curve fills
the smaller quadrants but never crosses itself
HILBERT'S CURVE 8
4.There is no limit to subdivisions and therefore length of the
curve is infinite. So with each subdivision length of the curve
increases by factor of 4.
Topological Dimensions:-
Consider object composed of clay. If object deformed into line OR
line segment. So we assign it’s dimension Dt =1, If object deforms
into plane OR half plane OR disk we assign it’s dimension Dt=2, If
object deforms into all space OR half space OR sphere, we assign
its dimension Dt=3 So the dimension Dt is referred to as the
topological dimension.
Fractal Dimension:-
It is 2nd measure of an object dimension. Imagine that a line
segment of length L is divided into N identical pieces.
9
The length of each line segment l can be given as, l=L/N------1. The
ratio of length of original line segment & length of each part of the
line segment is referred to as scaling factor & it is given as,
s=L/l-------2 fig 5-12-2-a
From above two equations we can write N=s i.e. N=s 1 In other word
we can say that, if we scale a line segment by factor 1/s then we
have to add N pieces together to get the original line segment.
KOCH CURVE 11
4.If we reduce the scale of curve by 3, we find curve that
looks just like the original one; but we must assemble 4
such curves to make original,
So we have 4=3D
The Hilbert’s curve & Koch curve are Fractals, Because their
fractal dimensions (Respectively,2 & 1.2618) are greater
than their topological dimensions which is 1
12
Natural objects such as mountain, trees, waves of ocean & clouds
etc have irregular shapes & it is very difficult to draw these shapes by
using normal equation.
To model these objects we use fractals. Fractal lines are used to
draw self similar curves. The fractal lines can be generated by
performing following steps:-
1.If the straight line segment is specified by points (x,y,z) &
(x2,y2,z2) fing midpoint of line by using following expression:-
(x1+x2/2 , y1+y2/2 , z1+z2/2 ) Refer fig 5-16-2
2.Add offset to midpoint such that resultant midpoint should not lie
on line itself. This can be achieved by adding offset term to each co-
ordinate as
(x1+x2/2+dx , y1+y2/2 +dy , z1+z2/2 +dz) Refer fig
5-17
FRACTAL LINES 13
Where
L-Length of segment
W-Waiting function governing the curve
roughness (i. e. Fractal dimension)
GAUSS-Gaussian variable which returns
random values between -1 & 1 with
ZERO mean i.e. returned values consist of
equal amount of positive & negative values.
FRACTAL SURFACES 15
16