Title: CMPUT 498 Curves and Surfaces
1CMPUT 498Curves and Surfaces
- Lecturer Sherif Ghali
- Department of Computing Science
- University of Alberta
2Curves
http//cougar.kniggets.org/cs219/mp1/curves/curves
.html
3Conics
4Parametric Cubic Curves
- A curve
- Locus of a point moving with one degree of
freedom - Torsion
- how much a space curve deviates from a plane
how much it attempts to escape the osculating
plane - Arc length
- length measured along a curve
- Characterisation of all plane curves
- torsion 0
- Characterisation of all straight lines
- curvature 0
5Parametric Cubic Curves
- Equations
- explicit
- y f(x)
- implicit
- f(x,y) 0
6Parametric Cubic Curves
- Why use parametric cubic curves?
- why curves (rather than polylines)?
- reduce of points
- interactive manipulation is easier
- why parametric (as opposed to y,zf(x))?
- arbitrary curves are easily representable
- rotational invariance
- why parametric (rather than implicit)?
- simplicity and efficiency
7Parametric Cubic Curves
8Parametric Cubic Curvesmatrix form
T
and
9Continuity
- Continuity between two parametric cubic curves
- Geometric continuity
- G0 the two curves are connected
- G1 the two tangents have the same direction
- Parametric continuity
- C0 the two curves are connected
- C1 the two tangents are equal
10Continuity
- Parametric continuity generally implies geometric
continuity. An exception is a pair of null vectors
11Continuity
connecting curves with C0, C1 , and C2 continuity
12The basis matrix
- Q(t) T . C
- C M . G
- Q(t) T . M . G
expanding for x(t)
13A line segment
geometric constraints
blending functions
14Hermite CurvesCharles Hermite (1822-1901)
- MH Hermite basis matrix
- GH geometric constraint vector
- stores the first and last points and the tangent
at these points
(Hermite derivation on board)
15Hermite curves
16Hermite basis matrix
17Hermite blending functions
18Varying the magnitude of the tangent vector
19Varying the direction of the tangent vector
20Obtaining geometric continuity G1
for parametric continuity C1, k 1
21Evaluation
22Bézier curvesPierre Bézier (1910-1999)
- UNISURF system at Renault (1970s)
- http//www.cs.unc.edu/mantler/old/Bezier.html
- http//www.cs.princeton.edu/min/cs426/classes/bez
ier.html
23Bézier basis functions
24Bézier basis functions
25Bézier curvesproperties
- The convex hull property
- Partition of unity
- Invariance under affine transformations
26The Bernstein polynomialsn3
27The Bernstein polynomials
28Bézier curvesgeometric construction
29Uniform Nonrational B-Splines
- Drafting splines
- metal sheets wrapped in rubber
- B-splines
- local control local effect of moving one control
point - adjacent set of independently defined splines
- Cubic B-splines
- cubic Basis functions
- use a parameter t
- 0 lt t lt 1
- Usually use t in 3,4, 4,5, 5,6,
- There is a knot at 4, 5, 6,
- Uniform
- knots (t parameter) equally spaced
30Uniform Nonrational B-Splines
http//page.inf.fu-berlin.de/vratisla/Bildverarbe
itung/Bspline/Bspline.html
http//i33www.ira.uka.de/applets/mocca/html/noplug
in/curves.html
31Uniform Nonrational B-Splines
32Uniform Nonrational B-Splines
33Uniform Nonrational B-Splines
- The B-spline basis matrix
- The B-spline geometry vector
- Ti
34Uniform Nonrational B-Splines
35Uniform Nonrational B-Splines
36Uniform Nonrational B-Splinesblending functions
37Uniform Nonrational B-Splinesmultiple control
points
38Surfaces
39Quadric Surfaces
40Parametric bicubic surfaces
41Bézier surfaces
42Hermite surfaces
43Adjacent Bézier patches
44B-spline surfaces
45Reference
Chap. 11
46(No Transcript)
47(No Transcript)
48p. 479
49(No Transcript)
50(No Transcript)
51(No Transcript)
52(No Transcript)
53(No Transcript)
54(No Transcript)