
(c) SE/FIT/HUT 2002
Đường cong trong không gian
3D CURVE
(c) SE/FIT/HUT 2002 2
Đường cong - Curve
Why use curves? Quỹ đạo chuyển động của 1 điểm trong
không gian
Đường cong biểu diễnĐiểm-curve represents points:
ĐiểmBiểu diễnvà kiểm soát đường cong -Points represent-
and control-the curve.
Cách tiếp cận này là cơ sởcủa lĩnh vực Computer Aided Geometric
Design (CAGD).
(c) SE/FIT/HUT 2002 3
Phân loại
Trên cơ sởràng buộc giữa điểm và đường trong cảứng dụng khoa học và
thiết kếta co thểphân làm 2 loại:
Xấp xỉ-Approximation -
Được ứng dụng trong mô hình hoá hình học
Nội suy-Interpolation
Trong thiết kếnôi suy là cần thiết với các đối tượng nhưng không phù hợp
với các đối tượng có hình dáng bất kỳ"free form“.
(c) SE/FIT/HUT 2002 4
Biểu diễn Đường cong
Tường minh y=f(x)
y = f(x), z = g(x)
impossible to get multiple values for a single
x
•break curves like circles and ellipses
into segments
not invariant with rotation
•rotation might require further segment
breaking
problem with curves with vertical tangents
•infinite slope is difficult to represent
Không tường minh f(x,y)=0 - Implicit equations:
f(x,y,z) = 0
equation may have more solutions than we
want
•circle: x² + y² = 1, half circle: ?
problem to join curve segments together
•difficult to determine if their tangent
directions agree at their joint point
(c) SE/FIT/HUT 2002 5
Đường cong tham biến
Biểu diễn các đường cong tham biến Parametric representation:
x = x(t), y = y(t), z = z(t)
overcomes problems with explicit and implicit forms
no geometric slopes (which may be infinite)
parametric tangent vectors instead (never infinite)
a curve is approximated by a piecewise polynomial curve
Define a parameter space
1D for curves
2D for surfaces
Define a mapping from parameter space to 3D points
A function that takes parameter values and gives back 3D points
The result is a parametric curve or surface
0t
1
Mapping F :t →(x, y, z)
(c) SE/FIT/HUT 2002 6
Parametric Curves
We have seen the parametric form for a line:
Note that x, y and z are each given by an equation that
involves:
The parameter t
Some user specified control points, x0and x1
This is an example of a parametric curve
10
10
10
)1(
)1(
)1(
zttzz
yttyy
xttxx
−+=
−+=
−+
=