surface modeling parametric surfaces dr. s.m. malaek

32
Surface Modeling Parametric Surfaces Dr. S.M. Malaek Assistant: M. Younesi

Upload: others

Post on 08-Jan-2022

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Surface ModelingParametric Surfaces

Dr. S.M. MalaekAssistant: M. Younesi

Page 2: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Surface ModelingThere are two types of surfaces that are commonly used in modeling systems,parametricparametric and implicitimplicit.

Implicit Surface: f(x,y,z)=0Example: (x-x0)2+(y-y0)2+(z-z0)2-r2=0

Page 3: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Surface Modeling

Page 4: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Parametric SurfacesParametric surfaces are defined by a set of three functions, one for each coordinate

x=f(u,v), y=f(u,v), z=f(u,v)

Page 5: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Parametric SurfacesParametric surfaces :

f(u,v) = ( x(u,v), y(u,v), z(u,v) )Assume both u and v are in the range of 0 and 1.

Page 6: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Parametric SurfacesParametric surfaces or more precisely parametric surface patches are not used individually. Many parametric surface patches are joined together side-by-side to form a more complicated shape.

Patch

Page 7: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Parametric Surface PatchEach patch is defined by control points net (Control Polyhedron).

Page 8: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Parametric Surface PatchA parametric surface patch can be considered as a union of (infinite number) of curves. Given a parametric surface f(u,v), if u is fixed to a value, and let v vary, this generates a curve on the surface whose u coordinate is a constant. This is the isoparametric curve in the v direction. Similarly, fixing v to a value and letting u vary, we obtain an isoparametric curve whose v direction is a constant.

Page 9: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Parametric Surface PatchPoint Q(u,v) on the patch is the tensor productof parametric curves defined by the control points.

Page 10: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Bézier SurfacePatch

Page 11: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Bézier Surface Patch A Bézier surface is defined by a two-dimensional set of control points pj,k, where j is in the range of 0 and m, and kis in the range of 0 and n.

∑∑== =

m

j

n

knkmjkj uBvBvu

0 0,,, )()(),( pP

Page 12: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Bézier Surface Patch Example: a Bézier surface defined by 3 rows and 3 columns (i.e., 9) control points and hence is a Bézier surface of degree (2,2).

Page 13: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Bézier Surface Patch The effect of “lifting” one of he control points of a Bézier patch.

Page 14: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Basis Functionsof

Bézier Surface Patches

Page 15: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Bézier Surface Patch Two-dimensional basis functions are the product of two one-dimensional Bézier basis functions.The basis functions for a Bézier surface are parametric surfaces of two variables u and v defined on the unit square.

The basis functions for control points p0,0 (left) and p1,1 (right), respectively. For control point p0,0, its basis function is the product of two one-dimensional Bézier basis functions B2,0(u) in the u direction and B2,0(v) in the v direction. In the left figure, both B2,0(u) and B2,0(v) are shown along with their product (shown in wireframe). The right figure shows the basis function for p1,1, which is the product of B2,1(u) in the udirection and B2,1(v) in the v direction.

Page 16: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Joining Bézier SurfacePatches

Page 17: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Joining Bézier Surface PatchesC0 continuity requires aligning boundary curves. 10for ),0(),1( ≤≤= vvv RQ

0030

0131

0232

0333

RQRQRQRQ

====

Page 18: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Joining Bézier Surface PatchesC1 continuity requires aligning boundary curves and derivatives.

3,,0)()( 0123 L=−=− ik iiii RRQQ

Page 19: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

PropertiesOf

Bézier Surface Patches

Page 20: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Properties Of Bézier Surface Patchesp(u,v) passes through the control points at the four corners of the control net: p0,0, pm,0, pm,n and p0,n.Nonnegativity: Bm,i(u) Bn,j(v) is nonnegative for all m, n, i, j and u and v in the range of 0 and 1. Partition of Unity: The sum of all Bm,i(u) Bn,j(v) is 1 for all u and v in the range of 0 and 1. Convex Hull Property: a Bézier surface p(u,v) lies in the convex hull defined by its control net. Affine Invariance

Page 21: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

B-Spline Surface

Page 22: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

B-Spline SurfaceA set of m+1 rows and n+1 control points pi,j, where 0 <= i <= mand 0 <= j <= n; A knot vector of h + 1 knots in the u-direction, U = { u0, u1, ...., uh};A knot vector of k + 1 knots in the v-direction, V = { v0, v1, ...., vk}; The degree p in the u-direction; The degree q in the v-direction;

)()(),( ,0 0

,, vNuNvu qj

m

i

n

jpiji∑∑

= =

= pP

Page 23: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

B-Spline Surface

Bézier Surface B-Spline Surface

B-Spline Surface patch is confined to the region nearer the central four control points (do not interpolate their control points).

Page 24: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Basis Functionsof

B-Spline Surface

Page 25: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Basis Functions of B-Spline SurfaceThe coefficient of control point pi,j is the product of two one-dimensional B-spline basis functions, one in the u-direction, Ni,p(u), and the other in the v-direction, Nj,q(v).

The basis functions of control points p2,0, p2,1, p2,2, p2,3, p2,4 and p2,5.The basis function in the u-direction is fixed while the basis functions in the v-direction change

Page 26: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Clamped, Closed and Open

B-Spline Surface

Page 27: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Clamped, Closed and Open B-Spline SurfaceClamped B-Spline Surface: If a B-spline is clamped in both directions, then this surface passes though control points p0,0, pm,0, p0,n and pm,n and is tangent to the eight legsof the control net at these four control points.

Page 28: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Clamped, Closed and Open B-Spline SurfaceClosed B-Spline Surface: If a B-spline surface is closed in one direction, then all isoparametric curves in this direction are closed curves and the surface becomes a tube.

Page 29: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Clamped, Closed and Open B-Spline SurfaceOpen B-Spline Surface: If a B-spline surface is open in both directions, then the surface does not pass through control points p0,0, pm,0, p0,n and pm,n.

Page 30: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Clamped, Closed and Open B-Spline SurfaceThree B-spline surfaces clamped, closed and open in both directions. All three surfaces are defined on the same set of control points; but, as in B-spline curves, their knot vectorsare different.

Page 31: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

PropertiesOf

B-Spline Surface

Page 32: Surface Modeling Parametric Surfaces Dr. S.M. Malaek

Properties Of B-Spline SurfaceNonnegativity: Ni,p(u) Nj,q(v) is nonnegative for all p, q, i, j and uand v in the range of 0 and 1. Partition of Unity: The sum of all Ni,p(u) Nj,q(v) is 1 for all u and vin the range of 0 and 1. Strong Convex Hull Property Local Modification Schemep(u,v) is Cp-s (resp., Cq-t) continuous in the u (resp., v) direction if u(resp., v) is a knot of multiplicity s (resp., t). Affine Invariance