Chapter 5 PDF
Chapter 5 PDF
G EOMETRIC M ODELING
Types of Curves and Their Mathematical Representation
Types of Surfaces and Their Mathematical
Representation
Types of Solids and Their Mathematical Representation
CAD/CAM Data Exchange
T YPES
C URVES AND T HEIR
OF
M ATHEMATICAL R EPRESENTATIONS
Wireframe Model ( 2D in 1960s for drafting, 3D in 1970s)
Wireframe Entities
analytic entities (points, lines, arcs and circles, fillets and chamfers, and
conics
synthetic entities (splines and Bezier curves)
methods of defining points: P(x,y,z), P(r,,z), P(x+x,y+y,z+z), , end
points of existing entity, center point, intersection of two entities.
methods of defining lines: between two points, parallel to axis, parallel or
perpendicular to a line, tangent to entity
methods of defining arcs and circles: center and radius, three points, center
and a point, a radius and tangent to a line passing through a point.
methods of defining ellipses and parabolas: ellipse (center and axes lengths,
four points, two conjugate diameters), parabola (vertex and focus, three
points).
methods of defining synthetic curves: cubic spline (a set of data points and
end slopes), Bezier curves (a set of data points), B-spline curves (interpolate
a set of data points with local control possible).
Curve Representation: Two types of representation are parametric and
non-parametric representation. In parametric representation all variables
(i.e., coordinates) are expressed in terms of common parameters. For
example, a point can be expressed with respect to a parameter as
P [ x, y( x), z( x)]
Lines
Circles
Ellipses
Parabolas
Hyperbolas
Conic Curves
L INE AND C IRCLE
A line between two points P1 and P2 can be expressed with respect to a
parameter.
P P1 u(P2 P1 )
x x c R cos u
y y c R sin u, 0 u 2
z zc
E LLIPSE
An ellipse with a center and major and minor axes of 2A and 2B can be
expressed as.
x x c A cos u
y y c B sin u, 0 u 2
z zc
PARABOLA
E XAMPLE 1
E XAMPLE 2
H YPERBOLA
E XAMPLE 1
C ONICS
The most general form of planar quadratic curves is conic curves or conic
sections that include the previously covered curves; lines, circles,
ellipses, parabolas, and hyperbolas. The general implicit nonparametric
quadratic equation that describes the planar conic curve has five
coefficients and naturally needs five conditions to complete it.
L1 0, L2 0, L3 0, L4 0
L1 L2 0, L3 L4 0
L1 L2 aL3 L4 0
E XAMPLE 1
PARAMETRIC R EPRESENTATION OF
S YNTHETIC C URVES
Hermite Cubic Splines
Bezier Curves: cubic curve with four control points.
B-Splines: general case of Beziers curve (non-uniform)
Rational Curves (algebraic ratio of two polynomials)
NURB (non-uniform rational B-spline) curve combines all features of
previous curves
H ERMITE C UBIC S PLINES
E XAMPLE
E XAMPLE
B EZIER C URVES
Another alternative to create curves is to use approximation techniques
which produce curves that do not pass through the given data points that
are rather used to control the shape of the curves. Approximation
techniques arc more often preferred over interpolation techniques in
curve design due to the added flexibility and the additional intuitive feel.
Bezier curves and surfaces are credited to P. Bezier of the French car firm
Regie Renault who developed (about 1962) and used them in his
software system called UNISURF which has been used by designers to
define the outer panels of several Renault cars.
E XAMPLE
E XAMPLE
B-S PLINES
In contrast to Bezier curves, the theory of B-spline curves separates the
degree of the resulting curve from the number of the given control points.
The B-spline curve P(u) for the degree k defined by n + 1 control points
n
P(u ) B kj (u )P j , 0 u u max
j 0
partition of unity
n
B kj (u ) 1
j 0
the recursive property
u u j u j k 1 u
B j k (u ) B j k 1 (u ) B j 1k 1 (u ), k 1
u jk u j u j k 1 u j 1
1, u j u u j 1
, for j n
0, otherwise
B j 0 (u )
1, u j u u j 1 , otherwise
0, otherwise
Since the weights depend on the knot vector only, it is useful to add another
weight wj to every control point that can be set independently. The weights
can be added as
n w j B kj (u )
P(u ) N kj (u )P j , N kj (u ) n
, 0 u u max
j 0
w j B kj (u )
j 0
Here, Njk is NURBS basis functions. Thus, the NURBS curve of degree k is
defined as weighted sum of control points with NURBS basis functions.
Some of Valuable Properties of NURBS Curves and
Surfaces
Solution. For three control points n = 2 and for the second degree k=2. The uniform
knots can be computed by the program in the B-spline example. The following shows
result in MathCad with modified program for Bjk. It now uses the knot vector as an
input.
Shown below are various curves that vary with different weights. Note that
the last shows violation of convex hull property with negative weight for mid-
point.
C URVE M ANIPULATIONS
The cases that require manipulation of curves include:
Displaying
Evaluating Points on Curves
Blending
Segmentation
Trimming
Intersection
Transformation
A PPLICATIONS
D ESIGN A PPLICATIONS
Example 1. For the given state of stresses (a)
determine the principal stresses and (b) state of
stresses on a plane a-a.
B
T YPES OF S URFACES AND T HEIR
M ATHEMATICAL R EPRESENTATIONS
Surface model is an extension of wireframe but has advantages: less
ambiguous, provide realism for display with hidden lines, mesh, and
shading.
Surface Entities
Plane surface
Ruled (lofted) surface (surface created by two curves being blended)
Surface of Revolution
Tabulated Cylinder (surface created by a curve and a vector)
Bezier surface: only approximates the given data points permitting only
global control
B-spline: surface that can approximate and interpolate permitting local
control
Coons Patch: used to create a surface using curves that form closed
boundaries in contrast to the above surfaces that use open boundaries
or set of points.
Fillet surface: B-spline surface that blends two surfaces together
Free-form surface: formed by free-form curves that are extensions of
Bezier, B-spline, and NURB curves.
S URFACE R EPRESENTATION :
E XAMPLE
A NALYTIC S URFACES
Plane Surface: P(u,v) = P0 + u(P1-P0) + v(P2-P0)
Ruled Surface
Surface of Revolution
Tabulated Cylinder
P LANE S URFACE
B ILINEAR S URFACE
Pu ,0 (u ) (1 u )P0,0 uP1,0
Pu ,1 (u ) (1 u )P0,1 uP1,1
P(u, v) (1 v)Pu ,0 vPu ,1
R ULED S URFACE
R EVOLVED S URFACE
TABULATED C YLINDER
PARAMETRIC R EPRESENTATION OF
S YNTHETIC S URFACES
H ERMITE B I C UBIC S URFACES
E XAMPLES
B ILINEAR S URFACE
Pu ,0 (u ) (1 u )P0,0 uP1,0
Pu ,1 (u ) (1 u )P0,1 uP1,1
P(u, v) (1 v)Pu ,0 vPu ,1
C OON S PATCH
Bilinear surface generated by four corners has straight sides and produce
quite flat surfaces. In contrast, Coons surface uses four side curves.
The surface obtained as above does not produce the end curves. Thus,
evaluating the surface on boundaries and forcing it to confirm to the
boundary curves yields extra-terms that must be subtracted.
Evaluating the surface along edges one finds extra terms that must be
subtraceted.
Advantages:
Follows boundary curves
Limitation:
not able to control internal shape
E XAMPLE
For given data along four edges, use cubic Bezier curves along the edges
to create Coons patch.
First find the curves along the edges. Their three components in (u,v) are
It is very easy to define an object with a solid model than other two previous
modeling techniques (curves and surfaces) because solid models do not need
individual locations as with wireframe models.
G EOMETRY AND TOPOLOGY
The above figure illustrates the difference between geometry and topology.
The geometry that defines the object is the lengths of lines, areas of
surfaces, the angles between the lines, and the radius and the center of the
cylinder and the height. On the other hand, topology (sometimes called
combinatorial structure), is the connectivity and associativity of the object
entities. It has to do with the notion of neighborhood and determines the
relational information between object entities. From a user point of view,
geometry is visible and topology is considered to be nongraphical relational
information that is stored in solid model databases and are not visible to
users.
S OLID E NTITIES
There are various basic building blocks, so called, primitives that can
be combined in certain boolean operations to construct complex
models. They include:
block
cylinder
cone
sphere
wedge
Torus
The set in the set theory is a collection of objects and the operations
include complement, union, and intersection. Further, regularized set
operations are used to avoid irregular object created by boolean
operations. Regular set is a geometrically closed set. The set
membership classification determines if some objects intersect with a
given object.
Half-spaces are unbounded geometric entities; each one of them divides
the representation space into two infinite portions, one filled with material
and the other empty. By combining half-spaces in a building block
fashion, various solids can be constructed.
Rigidity
Homogeneous three-dimensionality (ie. no dangling boundaries)
Finiteness and finite describability
Closure under rigid motion and regularized boolean operations
Boundary determinism (ie. Boundary must contain the solid)
The section may vary along the sweeping path. The following shows such
an example with variable section.
Analytic Solid Modeling (ASM): Historically it is closely related to
three dimensional isoparametric formulation of finite element analysis for
8- to 20-node hexahedral elements. This arose from the need to model
complex objects for finite element analysis. ASM uses the parametric
representation of an object in three-dimensional space that is a mapping
of a cubical parametric domain (so called, master domain) into a solid
described by the global coordinates (MCS).
Other Representations:
primitive instancing: is based on notion of families of objects or
family of parts.
cell decomposition scheme: an object can be represented as the
sum of cells.
spatial enumeration scheme: a solid is represented by the sum of
spatial cells that it occupies. The cells have fixed size.
octree encoding scheme: is generalization of spatial enumeration
scheme with variable cell size.