bits wase computer graphics session 9 10
TRANSCRIPT
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
1/59
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
2/59
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
3/59
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
4/59
Cubic Curves: The Parametric Polynomial Curves define points on
a 3D curve by using three polynomials in a parameter ‘t’, one
for each of x, y, and z. The coefficients of the polynomials areselected such that the curve follows the desired path.
Bi Cubic Surfaces: The Parametric Bivariate (two-variable)
polynomial surface patches define the coordinates of points on
a curved surface by using three bivariate polynomials, one foreach of x, y & z. The boundaries of the patches are parametric
polynomial curves. The surfaces are accordingly called Bicubic
Surfaces.
Quadric Surfaces: These are defined implicitly by an equation
f(x, y. z) = 0, where ‘f’ is a quadric polynomial in x, y, and z.
Quadric surfaces are a convenient representation for the
familiar solids like sphere, ellipsoid, and cylinder.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 4
Representing Curves and Surfaces cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
5/59
POLYGON MESHESPolygon Mesh: A polygon mesh is a collection of edges,
vertices, and polygons connected such that each edge
is shared by at most two polygons.An edge connects two vertices, and a polygon is a closed
sequence of edges.
An edge can be shared by two adjacent polygons, and avertex is shared by at least two edges.
A Polygon Mesh can be represented in several differentways, each has its own advantages and disadvantages.
Several representations can be used in a singleapplication; one for external storage, another forinternal use, and also another with which the userinteractively creates the mesh.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 5
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
6/59
Representing Polygon MeshesThere are three Polygon Mesh representations
namely: Explicit, Pointers to a Vertex List, and
Pointers to an Edge List.
Explicit Representation: In this case each polygon is
represented by a list of vertex coordinates:
P = ((x1, y1, z1), (x2, y2, z2) ,... ,(xn, yn, zn)).
The vertices are stored in the order in which they
would be encountered while traveling around the
polygon.
There are edges between successive vertices in the
list and between the last and first vertices.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 6
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
7/59
Advantages: For a single polygon, this is space-efficient; for a polygon mesh, however,
much space is lost because the coordinates of shared vertices are duplicated.
Even worse, there is no explicit representation of shared edges and vertices.
e.g.: To drag a vertex and all its incident edges interactively, all polygons that share the
vertex must be found.
This requires comparing the coordinate triples of one polygon with those of all other
polygons.
The most efficient way to achieve this is to sort all N coordinate triples, but this is atbest an N.log2N process, and even then there is the danger that the same vertex
might, have slightly different coordinate values in each polygon due to
computational round-off, so a correct match might never be made.
Disadvantages: If edges are being drawn, each shared edge is drawn twice; this causes
problems on pen plotters, film recorders, and vector displays due to theoverwriting.
A problem may also be created on raster displays if the edges are drawn in opposite
directions, in which case extra pixels may be intensified.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 7
Representing Polygon Meshes cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
8/59
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
9/59
Advantages: This representation, has several
advantages over the explicit polygon
representation.
Since each vertex is stored just once, considerable
space is saved.
Furthermore, the coordinates of a vertex can be
changed easily.
Disadvantages: it is still difficult to find polygons that
share an edge, and shared polygon edges are still
drawn twice when all polygon outlines are
displayed.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 9
Representing Polygon Meshes cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
10/59
Pointers to an Edge List: In this case, there is a vertex list V which represent a
polygon as a list of pointers to an edge list (and not to the vertex list), in
which each edge occurs just once.
In turn, each edge in the edge list points to the two vertices in the vertex list
defining the edge, and also to the one or two polygons to which the edge
belongs.
Hence, a polygon is described as P = (E1 ,... , En), and an edge as
E = (V1, V2, P1, P2).
When an edge belongs to only one polygon, either P1 or P2 is null ( λ). Figure
below shows an example of this representation.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 10
Representing Polygon Meshes cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
11/59
Consistency of Polygon Mesh Representations
Of the three representations discussed above, the Explicit-Edge scheme
is the easiest to check for consistency, because it contains the most
information.e.g. To make sure that all edges are part of at least one but no more
than some maximum number of polygons, the code in Figure below
can be used.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 11
The relationship of "sharingan edge" between polygons
is a binary equivalence
relation and hence it
partitions a mesh into
equivalence classes called
Connected Components.
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
12/59
Plane EquationsStandard equation of the plane is given by:
Ax + By + Cz + D = 0 (11.1)
The coefficients A, B, and C define the normal to the plane [A
B C].
Given points P1, P2, and P3 lie on the plane, then the pIane’s
normal can be computed as the vector cross-product P1P2 X P1P3 (or P2P3 X P2P1 etc.).
If the cross product is zero, then the three points are
collinear and do not define a plane.
Given a nonzero cross product, D can be found by
substituting the normal [A B C] and any one of the three
points into Eq. (11.1).
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 12
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
13/59
e.g. The Area (and hence coefficient) C of the polygon projected onto
the (x. y) plane in Fig. 11.6 is just the area of the trapezoid A3, minus
the areas of A1 and A2.In general,
where the operator ‘ ‘ is normal addition except that n 1 = 1.
The areas for A and B are given by similar formulae, except the area forB is negated.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 13
Plane Equations cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
14/59
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
15/59
PARAMETRIC CUBIC CURVES
Polylines and polygons are first degree, piecewise
linear approximations to curves and surfaces,
respectively.
Unless the curves or surfaces which are being
approximated are also piecewise linear, large
numbers of endpoint coordinates must be created
and stored to achieve reasonable accuracy.
Interactive manipulation of the data to approximate
a shape is tedious.
The higher-degree approximations can be based on
one of 3 methods.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 15
’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
16/59
First: Express y and z as explicit functions of x, so that
y = f (x) and z = g(x).
The difficulties with this are that:
(1) it is impossible to get multiple values of y for asingle x, so curves such as circles and ellipses
must be represented by multiple curvesegments;
(2) such a definition is not rotationally invariant (todescribe a rotated version of the curve requires a
great deal of work and may in general requirebreaking a curve segment into many others); and
(3) describing curves with vertical tangents is difficult,because a slope of infinity is difficult to represent.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 16
PARAMETRIC CUBIC CURVES cont’d….
’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
17/59
Second: Choosing to model curves as solutions to
implicit equations of the form f(x, y, z) = 0;
this has problem of its own.
I. the given equation may have more solutions than
required.
II. if two implicitly defined curve segments are
joined together, it may be difficult to determine
whether their tangent directions agree at their join
point.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 17
PARAMETRIC CUBIC CURVES cont’d….
’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
18/59
The Parametric representation for curves:
x = x(t), y = y(t), z = z(t) overcomes the problemscaused by functional or implicit forms.
Parametric curves replace the use of geometric
slopes with parametric tangent vectors.Here a curve is approximated by a piecewise
polynomial curve instead of the piecewise linear
curve.
Each segment Q of the overall curve is given by three
functions x, y, and z which are cubic polynomials in
the parameter ‘t’.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 18
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES ’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
19/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 19
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES ’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
20/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 20
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES ’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
21/59
Figure 11.7 shows two joined parametric cubic curve
segments and their polynomials; it shows the
ability of parametric forms to represent easily
multiple values of y for a single value of x with
polynomials that are themselves single valued.
The derivative of Q(t) is the parametric tangent
vector of the curve.
Applying this definition to Eq. (11.7), we have
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 21
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES t’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
22/59
lf two curve segments join together, the curve has G0 Geometric Continuity.
If the directions (but not necessarily the magnitudes)of the two segments’ tangent vectors are equal at a join point, then the Curve has G1 geometric
continuity.G1 continuity means that the geometric slopes of the
segments are equal at the join point.
For two tangent vectors TV1 and TV
2 to have the same
direction, it is necessary that one be a scalarmultiple of the other:
TV1 = k . TV2 with k > 0.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 22
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES t’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
23/59
If the tangent vectors of two cubic curve segments are equal (i.e. their
directions and magnitudes are equal) at the segments’ join point,
the curve has first-degree continuity in the parameter ‘t’, orparametric continuity, and is said to be C1 continuous.
lf the direction and magnitude of dn/dtn[Q(t)] through the nth
derivative are equal at the join point, the curve is called Cn
continuous.
Figure 11.8 shows curves with three different degrees of continuity.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 23
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES t’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
24/59
In general, C1 continuity implies G1, but the converse is generally not
true.
That is, G1 continuity is generally less restrictive than is C1 , so curvescan be G1 but not necessarily C1.
However, join points with G1 continuity will appear just as smooth as
those with C1 continuity, as seen in Fig. 11.9.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 24
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES t’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
25/59
There is a special case in which C1 continuity does not imply G1 continuity; When
both segments’ tangent vectors are [0 0 0] at the join point.
In this case, the tangent vectors are indeed equal, but their directions can be
different (Fig. 11.10). Figure 11.11 shows this concept in another way.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 25
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES t’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
26/59
A curve segment Q(t) is defined by constraints on endpoints,tangent vectors, and continuity between curve segments.
Each cubic polynomial of Eq. (11.5) has four coefficients, sofour constraints will be needed, this allows one to formulatefour equations in the four unknowns, then solving for theunknowns.
The three major types of curves are Hermite, defined by two
endpoints and two endpoint tangent vectors;Bézier, defined by two endpoints and two other points that
control the endpoint tangent vectors; and
several kinds of Splines, each defined by four control points.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 26
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES t’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
27/59
The splines have C1 and C2 continuity at the join
points and come close to their control points, but
generally do not interpolate the points.
The types of splines are uniform B-splines, non
uniform B-splines, and β-splines.
Since a parametric cubic curve is defined by
Q(t) = T * C.
Rewriting the coefficient matrix as C = M · G,where M is a 4 x 4 basis matrix, and G is a four
element column vector of geometric constraints,
called the Geometry Vector.9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 27
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
28/59
The geometric constraints are just the conditions, such as endpoints or
tangent vectors, that define the curve.
Gx refers to the column vector of just the x components of thegeometry vector. Gy and Gz have similar definitions.
M or G, or both M and G. differ for each type of curve.
G, or both M and G, differ for each type of curve.
The elements of M and G are constants, so the product T · M · G is justthree cubic polynomials in ‘t’.
Expanding the product Q(i) = T*M*G gives
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 28
PARAMETRIC CUBIC CURVES cont’d….
PARAMETRIC CUBIC CURVES cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
29/59
Equation (11.10) emphasizes that the curve is a
weighted sum of the elements of the geometry
matrix.
The weights are each cubic polynomials of t, and are
called Blending Functions.
The blending functions B are given by B = T * M.
So each curve segment is a straight line defined by
the endpoints G1
and G2
:
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 29
PARAMETRIC CUBIC CURVES cont’d….
Hermite Curves
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
30/59
Hermite CurvesThe Hermite form of the cubic polynomial curve segment is
determined by constraints on the endpoints P1 and P4 and
tangent vectors at the endpoints R1 and R4.(The indices 1 and 4 are used, rather than 1 and 2, for
consistency with later sections, where intermediate points
P2 and P3 will be used instead of tangent vectors to define
the curve).
To find the Hermite basis matrix MH, which relates the
Hermite geometry vector GH to the polynomial
coefficients.Four equations are written , one for each of the constraints,
in the four unknown polynomial coefficients and then
solve for the unknowns.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 30
Hermite Curves cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
31/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 31
Hermite Curves cont d….
Hermite Curves cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
32/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 32
Hermite Curves cont d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
33/59
Hermite Curves cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
34/59
Figure 11.14 shows a series of Hermite curves. The only difference among
them is the length of the tangent vector R1, the directions of the tangent
vectors are fixed. The longer the vectors, the greater their effect on the
curve.
Figure 11.15 is another series of Hermite curves, with constant tangent-vector
lengths but with different directions.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 34
Fig. 1 1 .14 Family of Hermite parametric cubic
curves. Only R,, the tangent vector at P1, varies
for each curve. increasing in magnitude for the
higher curves.
Fig. 1 1.1 5 Family of Hermite parametric cubic
curves. Only the direction of the tangent vector at
the left starting point varies, all tangent vectors have
the same magnitude. A smaller magnitude would
eliminate the loop in the one curve.
Hermite Curves cont d….
Hermite Curves cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
35/59
For two Hermite cubics to share a common endpoint with G1
(geometrical) continuity, as in Fig. 11.17, the geometry vectors must
have the form
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 35
Fig. 11.1 7 Two Hermite curves joined at P4. The
tangent vectors at P4 have the same direction but
different magnitudes, yielding G1
but not C1
continuity.
Hermite Curves cont d….
Bézier Curves
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
36/59
Bézier Curves
The Bézier form of the cubic polynomial curve
segment, which indirectly specifies the endpoint
tangent vector by specifying two intermediate
points that are not on the curve; see Fig. 11.19. The
starting and ending tangent vectors are determined
by the vectors P1P2 and P3P4 and are related to R1 and R4 by
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 36
Fig. 11.19 Two Bézier curves and their control points. Notice that
the convex hulls of the control points, shown as dashed lines, do
not need to touch all four control points.
Bézier Curves cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
37/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 37
Bézier Curves cont d….
Bézier Curves cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
38/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 38
Bézier Curves cont d….
Uniform Nonrational B-Splines
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
39/59
Uniform Nonrational B-SplinesThe term spline is the long flexible strips of metal
used by draftspersons to lay out the surfaces of
airplanes, cars, and ships.B-splines, consist of curve segments whose
polynomial coefficients depend on just a few
control points called as Local Control.Thus, moving a control point affects only a small part
of a curve.
In addition, the time needed to compute thecoefficients is greatly reduced.
B-splines have the same continuity as natural splines,but do not interpolate their control points.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 39
Uniform Nonrational B-Splines cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
40/59
Cubic B-splines approximate a series of m + 1 control points P0,P1,P2, .... Pm ; m ≥ 3, with a curve consisting of m - 2 cubic
polynomial curve segments Q 3, Q 4,... Q m.Although such cubic curves might be defined each on its own
domain 0 ≤ t < 1, the parameter can be adjusted [making asubstitution of the form t = t + k] so that the parameterdomains for the various curve segments are sequential.
Thus, the parameter range on which Q i is defined is ti ≤ t < ti+1,for 3 ≤ i ≤ m.
In particular when m = 3, there is a single curve segment Q 3
that is defined on the interval t3 ≤ t < t4 by four control pointsP0 to P3.
For each i ≥ 4, there is a join point or knot between Q i-1 and Q i at the parameter value ti the parameter value at such a pointis called a Knot Value.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 40
Uniform Nonrational B-Splines cont d….
Uniform Nonrational B-Splines cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
41/59
The initial and final points at t3 and tm+1 are also called Knots, so that
there is a total of m - 1 knots.
Figure 11.22 below shows a 2D B-spline curve with its knots marked.A closed B-spline curve is easy to create: The control points P0, P1, P2
are repeated at the end of the sequence- P0, P1 ,... Pm, P0, P1, P2.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 41
Fig. 1 1.22 A B-spIine with curve segments Q3 through Q9. This and many other figures
in this chapter were created with a program written by Carlos Castellsaqué.
Uniform Nonrational B-Splines cont d….
Uniform Nonrational B-Splines cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
42/59
The term UNIFORM means that the knots are spacedat equal intervals of the parameter ‘t’.
Nonunifurm nonrational B-splines, which permitunequal spacing between the knots. The termnonrational is used to distinguish these splines
from rational cubic polynomial curves, where x(t),y(t) and z(t) are each defined as the ratio of twocubic polynomials.
The "B" stands for Basis, since the splines can be
represented as weighted sums of polynomial basisfunctions, in contrast to the natural splines, forwhich this is not true.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 42
Uniform Nonrational B-Splines cont d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
43/59
Uniform Nonrational B-Splines cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
44/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 44
Uniform Nonrational B Splines cont d….
Uniform Nonrational B-Splines cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
45/59
Figure 11.24 shows the B-spline blending functions
BBs
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 45
Fig. 11.24 The four B-spline blending
functions from Eq. (11.35). At t = 0 and t= 1,
just three of the functions are nonzero.
Uniform Nonrational B Splines cont d….
PARAMETRIC BICUBIC SURFACES
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
46/59
PARAMETRIC BICUBIC SURFACESParametric bicubic surfaces are a generalization of parametric cubic curves.
As the general form of the parametric cubic curve Q(t) = T · M · G; where G, the
Geometry Vector, is a constant.
First, for notational convenience, replacing t with s,
giving Q(s) = S · M · G.
Now allowing the points in G to vary in 3D along some path that is parameterized on t,
we have
Now, for a fixed t1, Q(s, t1) is a curve because G(t1) is constant.
Allowing t to take on some new value say, t2; where t2 - t1 is very small, then Q(s, t) is a
slightly different curve.
Repeating this for arbitrarily many other values of t2 between 0 and 1, an entire family
of curves is defined, each arbitrarily close to another curve.
The set of all such curves defines a surface. If the Gi(t) are themselves cubics, the
surface is said to be a Parametric Bicubic Surface.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 46
PARAMETRIC BICUBIC SURFACES cont’d
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
47/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 47
PARAMETRIC BICUBIC SURFACES cont d….
Hermite Surfaces
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
48/59
Hermite SurfacesHermite surfaces are completely defined by a 4 X 4 geometry
matrix GH. Derivation of GH follows the same approach
used to find Eq. (11.75).Further elaborating the derivation here, applying it just to
x(s, t).
First, replacing t by s in Eq. (11.13), to getx(s) = S . MH
. GHx.
Rewriting this further so that the Hermite geometry vector
GHx
is not constant, but is rather a function of t, we obtain
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 48
Hermite Surfaces cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
49/59
The functions P1x(t) and P4x(t) define the x components of the starting and ending points for the curve in
parameter s.
Similarly, R1x(t) and R4x(t) are the tangent vectors at these points.
For any specific value of t, there are two specific endpoints and tangent vectors. Figure 11.39 shows P1
(t),
P4(t), and the cubic in s that is defined when t = 0.0, 0.2, 0.4, 0.6, 0.8, and 1.0.
The surface patch is essentially a cubic interpolation between P1(t) = Q (0, t) and
P4(t) = Q (1, t) or, alternatively, between Q(s, 0) and Q(s, 1).
In the special case that the four interpolants Q(0, t), Q(1 , t), Q(s, 0), and Q(s, 1) are straight lines, the result
is a ruled surface. If the interpolants are also coplanar, then the surface is a four-sided planar polygon.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 49
Fig. 11.39 Lines of constant
parameter values on a bicubic
surface: P1(t) is at s = 0, P4(t) is at
s = 1.
Hermite Surfaces cont d….
Hermite Surfaces cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
50/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 50
Hermite Surfaces cont d….
Hermite Surfaces cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
51/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 51
Hermite Surfaces cont d….
Hermite Surfaces cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
52/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 52
Hermite Surfaces cont d….
Bézier Surfaces
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
53/59
Bézier SurfacesThe Bézier bicubic formulation can be derived in exactly the same way as that of the
Hermite cubic. The results are
The Bézier geometry matrix G consists of 16 control points, as shown in Fig. 11.42.
Bézier surfaces are attractive in interactive design for the same reason as Bézier
curves are: Some of the control points interpolate the surface, giving convenient
precise control, whereas tangent vectors also can be controlled explicitly.
When Bézier surfaces are used as an internal representation, their convex-hull
property and easy subdivision are attractive.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 53
Bézier Surfaces cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
54/59
C0 and G0 continuity across patch edges is created by making the four
common control points equal.
G1
continuity occurs when the two sets of four control points on eitherside of the edge are collinear with the points on the edge.
In Fig. 11.43. the following sets of control point are collinear and define
four line segments whose lengths all have the same ratio k : (P13, P14,
P15
), (P23
, P24
, P25
), (P33
, P34
, P35
) and (P43
, P44
, P45
).
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 54
Bézier Surfaces cont d….
B-Spline Surfaces
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
55/59
B Spline Surfaces
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 55
Normals to Surfaces
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
56/59
Normals to SurfacesThe normal to a bicubic surface, needed for shading , for performing
interference detection in robotics, for calculating offsets for numericallycontrolled machining, and for doing other calculations, is easy to find.
From Eq. (11.75), the s tangent vector of the surface Q(s, t) is
Both tangent vectors are parallel to the surface at the point (s, t) and,
therefore, their cross-product is perpendicular to the surface.Note: If both tangent vectors are zero, the cross-product is zero, and there is
no meaningful surface normal.
A tangent vector can go to zero at join points that have C1 but not G1 continuity.
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 56
QUADRIC SURFACES
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
57/59
QUADRIC SURFACES
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 57
QUADRIC SURFACES cont’d….
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
58/59
9 December 2013 BITS WASE Computer Graphics Course Delivery By Dr. K. Satyanarayan Reddy 58
QUADRIC SURFACES
-
8/13/2019 BITS WASE Computer Graphics Session 9 10
59/59
THANK YOU