CHAPTER 4
228
Graphics
Cubic Bézier curves have two useful properties:
The curve can be very quickly split into smaller pieces for rapid rendering.
The curve is contained within the convex hull of the four points defining the
curve, most easily visualized as the polygon obtained by stretching a rubber
band around the outside of the four points. This property allows rapid testing
of whether the curve lies completely outside the visible region, and hence does
not have to be rendered.
The Bibliography lists several books that describe cubic Bézier curves in more
depth.
The most general PDF operator for constructing curved path segments is the
c
operator, which specifies the coordinates of points
P
1
,
P
2
, and
P
3
explicitly, as
shown in Figure 4.8. (The starting point,
P
0
, is defined implicitly by the current
point.)
P
1
(x
1
,
y
1
)
P
2
(x
2
,
y
2
)
P
3
(x
3
,
y
3
)
P
0
(current point)
x
1
y
1
x
2
y
2
x
3
y
3
c
FIGURE 4.8
Cubic Bézier curve generated by the
c
operator
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.