Академический Документы
Профессиональный Документы
Культура Документы
(n+1) = 4
(m+1) = 5
EDGES
(BEZIER
CURVES)
n m Bi ,n (u ) n m Bl ,m (v)
N (u, v) Pij B j ,m (v) Pkl Bk ,n (u )
i 0 j 0 u k 0 l 0 v
n m n m
Bi ,n (u ) Bl ,m (v)
B j ,m (v)Bk ,n (u ) Pij Pkl
i 0 j 0 k 0 l 0 u v
C1 CONTINUITY
CONTINUITY
REQUIREMENTS OF
BEZIER PATCHES AT
BLENT EDGES
Review question:
w
u
(0,1,0)
u=0 w=0
u=0 w=0
P(ui, vj, wk)
v
v
(1,0,0)
v=0
w (0,0,1) v=0
u P(1,0,0)
P(0,0,1)
X
I/C, Regalla Srinivasa Prakash 11
Z
Formulation of Triangular Patches
Similar to the tensor product rectangula r patches.
For example, a triangula r Bezier patch is defined as
P(u, v, w) Pijk Bi , j ,k ,n (u, v, w), 0 u 1, 0 v 1, 0 w 1
i , j ,k
where
i, j , k 0, and i j k n and n degree of the patch.
The Bi,j,k,n are the Bernstein polynomials
of degree n :
n! i j k
Bi , j ,k ,n uv w
i! j!k!
Pi , j ,k Control points or data points that form
the vertices of the control polygon.
I/C, Regalla Srinivasa Prakash 12
The number of control points required to define a
Bezier triangular surface patch of degree n is :
(n 1)(n 2)
2
The triangula r Bezier patch has same degree in all u, v and w
directions unlike a rectangula r patch which can have
n and m different degrees in different parametric directions .
Examples :
How many control points are required to define (a) quadratic,
(b) cubic and (c) quartic Bezier surface patches?
Solution :
(a) Quadratic : n 2; (n 1)(n 2)/2 (2 1)(2 2)/2 6
(b) Cubic : n 3; (3 1)(3 2)/2 10
(c) Quartic : n 4; (4 1)(4 2)/2 15
I/C, Regalla Srinivasa Prakash 13
FINDING THE BASIS POLYNOMIAL
FUNCTIONS IN THE TRINGULAR BEZIER
PATCH BY MEANS OF PASCALS TRIANGLE
v4
4uv3
4v3w
12uv2w
6v2w2 6u2v2
12uvw2 12u2vw
QUARTIC PATCH 4vw3 4u3v
w4 6u2w2 4u3w u4
4uw3
I/C, Regalla Srinivasa Prakash 14
B-SPLINE SURFACE PATCH
n m
P(u, v) Pij N i ,k (u )N j ,l (v),
i 0 j 0
0 u umax , 0 v vmax
Is this correct?
NoWhy?
Let us see.
I/C, Regalla Srinivasa Prakash 18
Consider t he linear Coons surface patch being obtained by
simple summing up of two ruled surfaces obtained by using
the oppositeboundary curves as rails. Indeed,
P(u , v) P (u ,0)(1 v) P (u ,1)v P(0, v)(1 u ) P(1, v)u
if we substitute the boundary conditions , we should get
the corner points and boundary curves from this parametric
form.
Will we obtain P00 if we substituteu 0 and v 0?
P(0,0) P(0,0) P(0,0) 2 P00 ..........so No.
also at the edge u 0,
P(0, v) P (0,0)(1 v) P(0,1)v P (0, v)
which is not P(0, v).
I/C, Regalla Srinivasa Prakash 19
Neither result correspond s to the original data. Why?
Because, the corner points are counted
twice, as P(0,0) is contained in both the
P(u,0) and P(0,v) boundary curves.
P h F (u) F (v)
i 0 j 0
ij ij i j
P(u, v) n m
h F (u) F (v)
i 0 j 0
ij i j
P(u, v) P(t, w) = 0
Three scalar equation with four unknowns, u, v, t
and w.
One parameter is kept constant and others are
found out.
Newton-Raphson iteration method is very useful.
I/C, Regalla Srinivasa Prakash 32
Projection
This is projecting an entity onto a plane or
surface
When we project a point P0 along r on a
planar surface defined as
P(u,v) = a + ub + vc
We need to solve the above equation and
the equation of the projection line given by
P(w)=P0+wr. That is P(u,v) P(w) =0.
Further derivation takes the following form.
I/C, Regalla Srinivasa Prakash 33
P(u , v) P( w) 0
a ub vc P0 wr
Dot multiply both sides of the above equation by (b c) to get
(b c).a (b c).( P0 wr ), since (b c) is perpendicular to both b and c.
Therefore
(b c).(a - P0 )
w
(b c).r
Similarly, we can write for the other parameters,
(c r).(P0 - a)
u
(c r).b
(b r ).(P0 - a)
v
(b r ).c
Similarly, projection of curves and surfaces onto a given surface can also be solved.
Ellipse area a A B
A Half major axis
B Half minor axis
A 2 B2
Ellipse perimeter p 2 4aE
2
where
E the complete elliptic integral at k A 2 B 2 / A.
E can be obtained from the tables I/C,
of complete elliptic
Regalla Srinivasa integrals available
Prakash 35
in standard mathematical tables.