Docsity

Parametric Surfaces: Patches, Sweeping, and Surfaces of Revolution, Study notes of Computer Graphics

Toggle sidebar
bg1
Parametric Surface Patches
As with parametric curves, define a vector-valued function
Derivatives are tangent to surface
•not necessarily orthogonal
And the unit normal can be computed as
[]
(,) (,) (,) (,)uv xuv yuv zuv
=
p
(,)
(,)
u
v
xyz
uv uuu
xyz
uv vvv
∂
∂∂
⎡⎤
=⎢⎥
∂∂∂
⎣⎦
∂∂∂
⎡⎤
=⎢⎥
∂∂∂
⎣⎦
p
p
(,) uv
uv
uv ×
=×
pp
npp
Example: Parametric Paraboloid
Described by equation
Horizontal cross sections are ellipses
(,)uv u v u v
κκ
22
12
⎡⎤
=+
⎣⎦
p
x
y
z
κ
1
κ
2
Exercise: Parametric Cylinders
Cylinders have circular profiles and some fixed height
So how to parameterize one?
(,) ?
(,) ?
(,) ?
xuv
yuv
zuv
=
=
=
x
y
z
1
r2
Exercise: Parametric Cylinders
Cylinders have circular profiles and some fixed height
The natural choice for two parameters is
Can easily write down coordinate functions
(,) cos
(,) sin
(,)
xhr
yhr
zhh h
θ
θ
θ
θθπ
θ
=
=0≤≤2
=0≤≤1 x
y
z
the angle around the base
location along the cylinder
u
vh
θ
=
=
1
r2
pf3
pf4

Partial preview of the text

Download Parametric Surfaces: Patches, Sweeping, and Surfaces of Revolution and more Study notes Computer Graphics in PDF only on Docsity!

Parametric Surface Patches As with parametric curves, define a vector-valued functionDerivatives are tangent to surface^ •

not

necessarily orthogonal And the unit normal can be computed as

[^

]

( ,^

)^

( ,^

)^

( ,^

)^

( ,^

u v^

x u v

y u v

z u v

p^ ( ,

u v

x^

y^

z

u v^

u^

u^

u x^

y^

z

u v^

v^

v^

v

∂^

∂^

⎡^

= ⎢^

∂^

∂^

⎣^

∂^

∂^

⎡^

= ⎢^

∂^

∂^

⎣^

p p^ ( ,

)^

u^

v u^

v

u v^

×

=^

p^ p × n^

p^

p

Example: Parametric Paraboloid Described by equationHorizontal cross sections are ellipses

( ,^

) u v

u^ v^

u^

v κ^ 2 κ

2 1

2

⎡^

=^

⎣^

p

x

y

z

κ^1

κ^2

Exercise: Parametric Cylinders Cylinders have circular profiles and some fixed heightSo how to parameterize one?

( ,^

)^?

( ,^

)^?

( ,^

)^?

x u vy u vz u v

x

y

z

r 2

Exercise: Parametric Cylinders Cylinders have circular profiles and some fixed heightThe natural choice for two parameters isCan easily write down coordinate functions

( ,^

)^

cos ( ,^

)^

sin ( ,^

x^

h^

r y^

h^

r z^

h^

h^

h

θ

θ

θ

θ

θ^

π

θ

= =^

0 ≤^

=^

0 ≤^

≤^

x

y

z

the angle around the baselocation along the cylinder u v^ θ= h =

r 2

Example: Parametric Sphere One of several ways to parameterize a sphere is^ • note that it is centered at the origin Usually paste together seams during polygon conversion^ • vertices at extreme values of

u,v

should be the same

  • not just duplicated points at the same location in space

( ,^

)^

cos^

cos

( ,^

)^

cos^

sin

( ,^

)^

sin x u v

r

v^

u

y u v

r

v^

u^

u

z u v

r

v^

π v

π^ π 2

2

= =^

0 ≤^

=^

−^ ≤

Sweeping out Surfaces We view space curves as being swept out by a moving point^ • as we vary

u^ the point moves through space

  • the curve is the path the point takes Essentially looked at surfaces the same wayNow let’s think about sweeping curves through space instead • this will define a surface• the set of all points visited by the curve during its motion

[^

]

(^ )^

(^ )^

(^ )^

(^ )

u^

x u y u

z u

= p

[^

]

( ,^

)^

( ,^

)^

( ,^

)^

( ,^

u v^

x u v

y u v

z u v

p

Extruding Surfaces Here’s a particularly simple method^ • specify initial (closed) curve• pick an axis to move along• and a distance to move Sweeps out something with the given profile^ • open curve defines a surface with an open boundary• closed curve defines something like a cylinder This is a common technique used to create 3-D text

Text

Surfaces of Revolution Extrusion moves curves via translation^ • we can just as easily use rotation Start with some curve^ • pick an axis of rotation• rotate about axis by 360° Characteristics of revolved surfaces^ • closed if endpoints on axis• open otherwise

  • but we can always fill in top/bottom• by construction, they’re symmetric Lots of other easy examples:^ • cylinder, cone, paraboloid, …

x

y z Example

: Revolving a semicircle produces a sphere.

Why They’re Nice for Animation Clip from “Her Majesty’s Secret Serpent” by Gavin Miller, Apple Computer, SIGGRAPH 89.Featuring Frank the Snake.