Académique Documents
Professionnel Documents
Culture Documents
4.1 Displaying
Displaying curves provides the designer with a means of visualizing
geometric models within the limits of the wireframe modeling
technique. Various color can be assigned to various curves for
identification and other purposes.
To display a curve many closed spaced points on it are generated
for various permissible value of the parameter u.
The curve parametric equation is obviously used to generate the
coordinates of theses points.
The display processing unit receives these coordinates and changes
them to 2D coordinates relative to the devices coordinate system of
the display terminal.
The resulting points are displayed and are connected by short-line
segments. Line-generation hardware exists for creating and
displaying these line segments.
3
To display a straight line, the two endpoints are fed to the line-
generation hardware to generate intermediate points and connect
them by short-line segments.
Equations of curves, such as circles and conic sections, that involve
trigonometric functions are usually rewritten to minimize
computation time to generate points on these curves for display
purposes.
Displaying a curve and representing it in its database are two
different things.
4
MS5015 Pemodelan Geom etrik
by I Wayan Suweca, MS-ITB
Page IV - 3
P (u ) au 3 bu 2 cu d, 0 u 1 (4.1)
P ( 0) d
1P0 a( u ) 3 b(u ) 2 c(u )
(4.2)
2 P0 6a(u ) 3 2b(u ) 2
3 P0 6a( u ) 3
Any successive point can be evaluated from
Pi 1 Pi 1Pi , 0 i n
1Pi 1 1Pi 2 Pi (4.3)
2 Pi 1 2 Pi 3 Pi
These equation show that only three addition are needed to generate
any point and 3n additions generate the n points.
In general, for a polynomial of degree n, n additions are required to
calculate one point.
6
MS5015 Pemodelan Geom etrik
by I Wayan Suweca, MS-ITB
Page IV - 4
4.3 Blending
Given two curve segments P1(u1), 0 < u1 < a, P2(u2), 0 < u2 < b. Find
the conditions for the two segments to be continuous at the joint.
In general, three classes of continuity at the joint can be
considered.
The first is C0 continuity; that is, the ending point of the first curve
and the starting point of the second curve are the same. This give
(4.4)
If the two segments are to be C1 continuous as well, they must
have slope continuity, that is
(4.5)
For the case of Bezier and open B-spline, slope continuity at the
joint can be achieved if the last segment of the control polygon of
the former and the first segment of the control polygon of the latter
is co-linear.
The third useful class of continuity is if the curvature (C2 continuity)
is to be continuous at the joint in addition to position and slope. To
achieve this continuity is less straightforward and requires the bi-
normal vector to a curve at a point.
Fig. 4-1 shows the tangent unit vector T, the normal unit vector N,
the center of curvature O, and the radius of curvature at point P
on a curve segment.
The curvature at P is defined as 1/. The binormal vector B is
defined as
(4.6)
(4.7)
(4.8)
(4.9)
11
(4.10)
or, in general, if
(4.11)
12
MS5015 Pemodelan Geom etrik
by I Wayan Suweca, MS-ITB
Page IV - 7
4.4 Segmentation
Segmentation or curve splitting is defined as replacing one existing
curve by one or more curve segments of the same type such that
the shape of the composite curve is identical to that the original
curve.
This is a useful feature for CAD/CAM systems; it is implemented as
a “divide entity” command.
Consider the case of creating a ruled surface using a closed
rectangle and a circle as rails of the surface. In this case, the circle
is split into four segments at the intersections of the rectangle
diagonals with the circle, see Fig. 4-1.
Mathematically, curve segmentation is a reparametrization or
parameter transformation of the curve. Splitting lines, circles, and
conics is a simple problem.
13
4.5 Trimming
Trimming curves or entities is a very useful function provided by all
CAD/CAM systems.
Trimming can truncate or extend a curve. Trimming is
mathematically identical to segmentation. The only difference
between the two is that the result of trimming is only one segment
of the curve bounded by the trimming boundaries.
All mathematical treatment of the segmentation applies here. The
trimming function requires evaluating the equation of the desired
segment of the curves, deleting the original curve, and then storing
and displaying the desired segment.
Fig. 4-2 shows the reparametrization of a trimmed curve. Extending
general curves (Fig. 4-2b) such as HCS, Bezier curves, and B-spline
curves may not be recommended because the curve behavior
outside its original interval uo < u < um my not be predictable.
15
16
MS5015 Pemodelan Geom etrik
by I Wayan Suweca, MS-ITB
Page IV - 9
4.6 Intersection
The intersection point PI (see Fig. 4-3) of two parametric curves
P(u) and Q(v) in three dimensional space requires the solution of
the following equation in the parameters u and v:
(4.12)
(4.13)
18
MS5015 Pemodelan Geom etrik
by I Wayan Suweca, MS-ITB
Page IV - 10
4.7 Transformation
Manipulation or transformation of geometric entities during model
construction or creating the model database offers a distinct
advantage of CAD/CAM technology over traditional drafting
methods.
With transformation techniques, the designer can project, translate,
rotate, mirror, and scale various entities.
Simple transformation such as those mentioned above are usually
referred to as rigid-body transformation. They can be directly
applied to parametric representations of geometric models.
To translate a model of a car, all points, lines, curves, surfaces, and
solids forming the model must be translated.
Homogeneous transformation offers a concise matrix form to
perform all rigid-body transformation as matrix multiplications,
which is a desired feature from the software development point of
view. 19
20
MS5015 Pemodelan Geom etrik
by I Wayan Suweca, MS-ITB
Page IV - 11
References
• Ibrahim Zeid, “CAD/CAM: Theory and Practice”, McGraw-Hill, Int.
Edition, 1991.
• Kunwoo Lee, “Principles of CAD/CAM/CAE Systems”, Addison-
Wesley, 1st Edition, 1999.
21