Geometric Model & Curve
Geometric Model & Curve
Geometric Model & Curve
Modelling
&
Curves
Geometric Modeling
1
Modelers for Engineering
Modeling for engineering
applications require higher
accuracy of representation.
Geometric modeling
simply means that design concepts are
digitally inputted into software
subsequently displays them in either
2-D or 3-D forms.
a general term applied to 3-D
computer-aided design techniques.
2
Geometric model =
Geometry + Topology
Feature model =
Geometric model + Design intent
Design intent =
Constraints + Rules 5
B-rep, CSG
3
What is Geometric modeling ?
The process of constructing a complete
mathematical description (geometric
database) to model a physical entity
or system.
Geometric Modeling
GM is a general term applied to 3D computer-
aided design techniques.
4
How does geometric modeling fit into a
modern design sequence?
Geometric modeling
Engineering
Stress Analysis Thermal Geometric
Analysis Analysis
modeling is a
After-life
Analysis basic
engineering
Geometric modeling tool.
5
Geometric modeling
produce an appropriate database used for input
into specialized engineering software tools to
perform tasks in an integrated design sequence.
Geometric modeling
6
Shape
modeling
Re- Feature
construction Analysis
Mesh
Simplification generation
Geometry
• A typical solid model is defined by volumes, areas, lines, and
keypoints.
– Volumes are bounded by areas. They represent solid
objects.
– Areas are bounded by lines. They represent faces of solid
objects, or planar or shell objects.
– Lines are bounded by keypoints. They represent edges of
objects.
– Keypoints are locations in 3-D space. They represent
vertices of objects.
7
...Geometry - Preprocessing
• There is a built-in hierarchy among solid model
entities. Keypoints are the “foundation” entities. Volumes
Lines are “built” from the keypoints, areas from Areas
lines, and volumes from areas. Lines
• This hierarchy holds true regardless of how the Keypoints
solid model is created.
• not allow you to delete or modify a lower-order
entity if it is attached to a higher-order entity.
(Certain types of modifications are allowed…
discussed later.)
Volumes
I’ll just
change Areas OOPs!
this line
Areas
Lines Lines
Keypoints Keypoints
8
Mathematical Representation of Curves
X
Z
Absolute cylindrical coordinates + E1
+ E1, E2
+ P(R,,z) + E2
R
+ E2
+ E1 + E2 + E1
9
Mathematical Representation of Curves
Yw
Xw
Zw
10
Mathematical Representation of Curves
R
R
+
2
1
+
Three points defined by any method
+ +
+
+
+
+
11
Mathematical Representation of Curves
R
+
12
Mathematical Representation of Curves
Three points
+
P1
+
+
Pv
P2
13
Curve Representation
• All forms of geometric modeling require
the ability to define curves.
• Linear curves (1st order) may be defined
simply through their endpoints.
• Must have a means for the
representation for curves of a higher
order:
– conics
– free form or space curves
Curve Representation
• Some terms we will use:
– Tangent vector:
Vector tangent to the slope of a curve at
a given point.
– Normal vector :
Vector perpendicular to the slope of a
curve at a given point.
14
Parametric curves;
Non-parametric and parametric forms
Analytical representations
15
Curve Representation
• Curves may be defined using different
equation formats.
• explicit Y = f(X), Z = g(X)
• implicit f(X,Y,Z) = 0
• parametric X = X(t), Y = Y(t), Z = Z(t)
• The explicit and implicit formats have
serious disadvantages for use in
computer-based modeling
Parametric form
16
Curve Representation
• Parametric:
X = X(t), Y = Y(t), Z = Z(t);
0 ≤ t ≤ 1 (typ)
• Substituting a value for t gives a
corresponding position along curve
• Overcomes problems associated with
implicit and explicit methods
• Most commonly used representation
scheme in modelers
Parametric example
Recall the parametric line representation
Parametric representation of a line. The
parameter u, is varied from 0 to 1 to define
all points along the line.
X = X(u) Y = Y(u)
P2
u
P1
17
Parametric Line
• Line defined in terms of its endpoints
• Positions along the line are based upon
the parameter value
Parametric Line
• This means a parametric line can be defined
by:
L(u) = [x(u), y(u), z(u)] = A + (B - A)u
18
Parametric cubic curves
• Algebraic form
• Geometric form: blending fn *
geometric (boundary) conditions
• Blending function: p (u) = [ F1 F2 F3 F4 ]
[ p(0), p(1), pu(0), pu(1) ]
• Magnitude and direction of tangent
vectors
• Cubic Hermite blending function
Boundary conditions
19
Blending functions
Parametric definition
Expanding the 2D parametric technique
we used for a line to 3D, two
parameters (u and v) are used.
P4
P2 P3
v
u
P1
20
Parametric definition
Points along edge P1 P2
have the form of P(u,0),
along P3 P4 , P(u,1) and so
on. P4
P(1,v) P(u,1)
P2 P3
v P(0,v)
P(u,0) u P1
Parametric definition
By varying value of u and
v, any point on the
surface or the edge of
the face may be P4
defined.
(u1,v1)
P2 P3
v
u
P1
21
Parametric definition
Another basic example would be that of a
conic (circle)
Parametric definition
22
Parametric definition
Y
u = π/4
0 1
u = –π/4
Parametric definition
Controls for this curve
• Shape (based upon parametric equation)
• Location (based upon center point)
• Size
– arc (based upon parameter range)
– radius ( a coefficient to unit value)
• Similar list could be formed for other
conics
23
Curve Use in Design
Engineering design requires ability to
express complex curve shapes (beyond
conics).
– examples are the bounding curves for:
• turbine blades
• ship hulls
• automotive body panels
– also curves of intersection between
surfaces
24
Use of control points
General curve shape may be generated
using methods of:
– Interpolation (also known as Curve fitting )
curve will pass though control points
– Approximation curve will pass near control
points may interpolate the start and end
points
25
Interpolating Curve
Piecewise linear
• Linear segments used to
approximate smooth shape
• Segments joints known as
KNOTS
• Requires too many
datapoints for most shape
approximations
Piecewise
• Representation not linear
flexible enough to editing
Piecewise polynomial
(composite curves)
• Segments defined by Interpolation
polynomial functions curve (cubic)
26
Knot points
• Locations where segments join referred
to as knots
Curve continuity
27
Composite curves
• Piecewise curves
• Curve segments
• Continuity conditions
Continuity is symbolically represented
by capital “C” with a superscript
representing level.
Curve continuity
– C0 continuity, point/position continuity
continuity of endpoint only, or continuity of
position
– C1 continuity, tangent continuity
tangent continuity or first derivative of
position
– C2continuity, curvature continuity:
Hydrodynamic character, Light reflection
curvature continuity or second derivative
of position
28
Composite curves: continuity
Curvature continuity
Interpolation curves
• Interpolating piecewise polynomial curve
• Typically possess curvature continuity
• Shape defined by:
– endpoint and control point location
– tangent vectors at knots*
– curvature at knots*
*often calculated internally by software
29
Approximation techniques
Developed to permit greater design
flexibility in the generation of freeform
curves.
Approximation techniques
• employ control points (set of vertices
that approximate the curve)
• curves do not pass directly through
points (except possibly at start and
end)
• intermediate points affect shape as if
exerting a “pull” on the curve
• allow user to to set shape by “pulling”
out curve using control point location
30
Curves Both Bézier curves and B-splines are polynomial parametric
curves. Polynomial parametric forms can not represent some
simple curves such as circles.
NURBS
B-spline
Rational
Bezier
Bezier
Recursive
Subdivision
Dr. M. Abid (mabid00@hotmail.com)
Algorithm
Bezier curves
• P. Bezier of Renault, P. de Casteljau of
Citroen
• Intuitive interaction: Direct
manipulation
• Approximated curve vs. Interpolated
curve
• Control points
31
Bezier curve defined by 4 pts
32
Closed Bezier curve
33
Bezier curve . . .
• Bernstein polynomial
• B i,n (u) = C(n,i) ui (1-u) n-i
• Binomial coefficient: Combination
34
B-spline
curves
NURBS
35
B-Spline Synthetic Curves
36
Effect of curve order
• The higher the order of a curve, the
“stiffer” the curve (less dramatic
curvature changes)
• Maximum curve order dependent upon
the number of control points order =
one less than the number of control pts
• High order curves can exhibit
irregularities
P3
P2
P4
Control
Polygon
B-spline curve
N0,p(a)=1
Nn,p(b)=1
P1
37
B-splines
• Generalization of Bezier curve
• Bezier: p(u) = S P B i,n (u)
• B-spline: p(u) = S P N j,k (u)
• Basis fn or blending fn is different
• Local changes
• Degree of the curve is independent of
# of control points
38
Influence of control point position
39
Quadratic B-spline blending fn (k=3)
Non-Uniform Rational,B-splines
Most modern CAD systems use the NURB
curve representation scheme.
• NURB stands for Non-Uniform,
Rational, B-spline.
• Uniformity deals with the spacing of
control points.
• Rational functions include a weighting
value at each control point for effect of
control point.
40
Non-Uniform Rational,B-splines
41
NURBS & CAD
Add that to some inconsistency in how these
formats are defined and consider a task like
importing the NURBS sphere into a Coons Patch
based program.
With NURBS it is now possible to represent the
geometry the same as the CAD packages
represent it internally - so rather than using
faulty exchange formats we have partnered with
the major CAD vendors and now have a direct link
that will pull a model from memory in the CAD
program into one of our programs.
84
42
Circular arc as a rational quadratic Bezier 85
43