CSC214 ยท 2078 ยท 5 marks
Define fractal. Explain the Bezier curve and B-Spline curve.
Define fractal. Explain the Bezier curve and B-Spline curve. [5]
Quick answer
A fractal is a geometric figure or natural phenomenon that exhibits self-similarity at every scale of magnification. This means a fractal looks similar (or identical) when zoomed in or out at any level. Fractals are used in computer graphics to model complex natural shapes such as mountains, clouds, coastlines, and trees that cannot be easily described by classical Euclidean geometry.
Fractal, Bezier Curve, and B-Spline Curve
1. Fractal (Definition)
Key properties of fractals:
- Self-similarity: Each part resembles the whole.
- Fractional dimension: They have non-integer (fractional) dimensions.
- Infinite detail: They show complexity at every level of magnification.
Example: Koch Snowflake, Sierpinski Triangle, Mandelbrot Set.
2. Bezier Curve
As noted in the reference, the Bezier spline was developed by French engineer Pierre Bezier and is widely used in CAD systems for curve and surface design.
Definition
A Bezier curve is a parametric curve defined using a set of control points. It does not necessarily pass through all control points (except the first and last); instead, it approximates the shape defined by those points.
Blending Functions (Bernstein Polynomials)
For n+1 control points P0, P1, ..., Pn, the Bezier curve is defined as:
$$Q(t) = \sum_{k=0}^{n} P_k \cdot B_{k,n}(t), \quad 0 \leq t \leq 1$$
Where the blending functions (Bernstein basis polynomials) are:
$$B_{k,n}(t) = \binom{n}{k} t^k (1-t)^{n-k}$$
Properties of Bezier Curves
- The curve passes through the first and last control points.
- The curve lies within the convex hull of the control points.
- The degree of the curve is
nforn+1control points. - Changing any one control point affects the entire curve (global control).
- Easy to implement and widely available in CAD systems.
3. B-Spline Curve
As stated in the reference, B-Splines are the most widely used class of approximating splines.
Definition
A B-Spline (Basis Spline) curve is a piecewise polynomial curve defined by a set of control points and a knot vector. It generalizes the Bezier curve and provides greater flexibility.
$$Q(t) = \sum_{k=0}^{n} P_k \cdot N_{k,d}(t)$$
Where:
P_k= control pointsN_{k,d}(t)= B-Spline basis functions of degreed- The basis functions are defined recursively using the Cox-de Boor recursion formula.
Advantages over Bezier Curves
| Feature | Bezier | B-Spline |
|---|---|---|
| Degree vs control points | Degree depends on number of control points | Degree can be set independently of control points |
| Control | Global control | Local control over curve shape |
| Complexity | Simpler | More complex |
Properties of B-Spline Curves
- Provides local control: modifying one control point affects only a portion of the curve.
- The degree of the curve can be chosen independently of the number of control points.
- The curve lies within the convex hull of the control points.
- More flexible for modeling complex shapes.
- Disadvantage: More complex to implement than Bezier splines.
Summary Table
| Feature | Fractal | Bezier Curve | B-Spline Curve |
|---|---|---|---|
| Nature | Self-similar geometric figure | Parametric approximation curve | Piecewise polynomial curve |
| Control | N/A | Global (all control points) | Local (individual control points) |
| Degree | Fractional dimension | Depends on control points | Independent of control points |
| Use | Natural shapes, terrain | CAD, font design | CAD, surface modeling |
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.