Curves

#comp37111

Representations of Geometry


Definitions

Polylines

Polylines are sequence of vertices connected by straight line segments. Suitable for drawing simple shapes but lack any notion of smoothness required for modelling complex objects and surfaces.

Curves

  1. A curve can be seen as a continuous set of points in n dimensions. This definition allows us to easily generate points along a curve and visualise its shape.

  2. A curve can be seen as a mapping from a interval S onto a plane. This definition allows us to describe trajectories and manipulate the speed at which we traverse the curve.$$ P : \mathbb{R} \ni S \mapsto \mathbb{R}^2 \hspace{2em} P(t) = \begin{pmatrix} x(t) \ y(t) \end{pmatrix} $$

Spline


Differential Properties of Curves

🧠 Motivation:

  • Computing Normals of a Surface
  • Finding velocity of an animation
  • Analysing smoothness of a curve

Orders of Continuity


Types of Splines

1. Bezier Curves

P(t)=(1t)3P1+3t(1t)2P2+3t2(1t)P3+t3P4

Matrix Notation

P(t)=GBT(t)=Geometry×Spline Basis×Power BasisP(t)=(x(t)y(t))=(x1x2x3x4y1y2y3y4)(1331036300330001)(1tt2t3)(B1(t)B2(t)B3(t)B4(t))=(1331036300330001)(1tt2t3)(1tt2t3)=(111101/32/31001/310001)(B1(t)B2(t)B3(t)B4(t))

Subdivision


2. B-Spline Curves

Conversion between Bezier and B-Spline curves


3. Non-Uniform Rational Basis Spline (NURBS)