You are on page 1of 62

Engineering curves and CAGD

Rubn Dorado Vicente


Department of mechanical & mining engineering
University of Jan
III Engineering Week, Schmalkalden 2013
Contents
Computer Aided Engineering
Computer Aided Geometric Design CAGD
Mathematical model of a curve
Useful engineering curves
Bzier, B-spline and NURBS representation
Fitting: approximation and interpolation
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Idea
Concept
& Design
Analysis
Simulation
Prototype
Tests
Manufacturing
Product
Computer aided engineering
III Engineering week, Schmalkalden 2013
CAE CAx
x
,
x = process aided by computer
Design CAD based on CAGD: computational representation of shapes
Analysis + virtual prototyping CAA
ManufacturingCAM
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

CAE advantages
Design errors lead to high final costs
CAE reduces the need for prototyping: cost & time to take market
Delays lost sales and lock-in
III Engineering week, Schmalkalden 2013
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Examples of first mover advantages
Operating systems: Microsoft
1981, DOS: Unstable, unsafe, "backward compatibility

CAD software: AutoCAD
First CAD software

QWERTY keyboard
Designed to avoid a mechanical problem

Alternative combustion engine
Contamination, mechanically
complex
III Engineering week, Schmalkalden 2013
Source: Itedo
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

CAE: disadvantages
There are many CAD format Lost time & errors
Solution for geometry: Neutral formats like IGES, STEP
Data maintenance: Hardware + software, High costs
III Engineering week, Schmalkalden 2013
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Finite element analysis
III Engineering week, Schmalkalden 2013
Source: engineering.com
Numerical solution
of mechanical problems
Application in structural,
thermal and dynamic studies

Idea: divide and conquer
Discretization in elements
Analytical CAD models.

CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Finite Element Analysis software
III Engineering week, Schmalkalden 2013
Software Company Analysis




ANSYS INC

Fluids, structural, thermal, dynamic.




Dassault Systemes

Fluids, structural, thermal, dynamic.




Siemens

Fluids, structural, thermal, dynamic.




Open source

Fluids, structural, thermal




Open source

Dynamic
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Computer aided manufacturing
III Engineering week, Schmalkalden 2013
Help to generate ISO code from CAD models
Manufacturing automatization
Control and inspection

CAD software admits CAM plugins
Example DELCAM within SolidWorks

Tool-path generation based on CAGD
An adequate tool-path can reduce time and forces.
Source: delcam.com
CAGD

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

CAM software
III Engineering week, Schmalkalden 2013
Software Company Analysis

CATIA Mold &
Tooling Design


Dassault Systemes

Machining, mold design, plastic
injection

NX CAM 9


Siemens

Machining, inspection

DELCAM


Delcam

Machining and inspection

Blendef


Open source

Milling
CAE

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Computer Aided Geometric Design
It is a discipline dealing with computational aspects of
geometric objects G. Farin (2002)
How model engineering curves and surfaces in a computer
It became a scientific & engineering discipline in 1974
Try to reduce errors and time by the use of a pc

Main CAGD advances:
Theory of Bzier curves and B-spline techniques

Other CAGD applications:
Solid modelling, Geographic information systems, Medical
imaging, Computer gaming, Scientific visualization

III Engineering week, Schmalkalden 2013
CAE

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Traditional vs. computer design
CAD reduces time and cost
it allows to represent real 3D models
No material and size limitations as paper planes

Lot of different computer graphic solutions
2D-Design
Technical illustrations
Metal sheet
Solid modelling

III Engineering week, Schmalkalden 2013
CAE

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Design software 2D
III Engineering week, Schmalkalden 2013
Software Company web

AutoCAD


AutoDesk

AutoDesk.com

Corel Designer


Corel Corp.

Corel.com

PTC Creo Schematic


PTC Corp.

Ptc.com

MicroStation
Powerdraft


Bentley

Bentley.com

LibreCAD


Open source

Librecad.org
CAE

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Technical illustrations 2D & 3D
Software Company web
Adobe Illustrator Adobe adobe.com
Corel Draw Corel Corp. Corel.com
PTC Creo Illustrate PTC Corp. Ptc.com
InkScape Open source inkscape.org
III Engineering week, Schmalkalden 2013
Source: Ptc corp.
CAE

Curve
s
Eng. curves CAD representation Fittin
g
Conclusions

Surface & Solid Modelling
Software Application Company web
RhinoCeros NURBS curves & surfaces Robert McNeel
& Associates
rhino3D.com
SolidWorks, Catia Surfaces & Solid Modelling Dassault Systemes 3ds.com
Creo Elements Surfaces & Solid Modelling PTC Corp. Ptc.com
FreeCAD Solid Modelling Open source freecadweb.org
III Engineering week, Schmalkalden 2013
Source: linuxaideddesign.
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Curve models
Curve: A continuous map from one dimension to n-dimension
space.

They have useful applications:
CAD Modelling uses:
Define contours of orthographic projections
Define wireframe models in CAD: rotations and translations of
a curve profile generate revolution and swept surfaces.

Engineering curves: conics, Cycloid, Spirals, Helix & so on

Scientific visualization via approximation or interpolation
III Engineering week, Schmalkalden 2013
Source: wikimedia
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Single valued curves
Definition: Graphic of a function
a vertical line cuts the curve once
Examples:
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Single valued curves: Problems
This representation is not valid after a rotation




Simple and useful curves are not single valued
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Parametric curves
Definition:
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Parametric curves
Advantages:
Solve the aforementioned drawbacks of single valued curves
Single valued (case x=t) parametric curve
Simple modelling and visualization:
1. give values (t) points c(t)
2. Join c(t) (linear segments)
Computer graphic cards draw 100 Msegments / s
Disadvantages:
It is complicated to define areas
Therefore it is difficult to distinguish inside and outside
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Polynomial parametric curves
III Engineering week, Schmalkalden 2013
c(t) {x(t),y(t)}, x(t), y(t) are degree n polynomials.
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Rational parametric curves
III Engineering week, Schmalkalden 2013
c(t) {x(t),y(t)}, x(t), y(t) are degree n rational functions.
c(t)
p(t)
w(t)
,
q(t)
w(t)

, p(t), q(t), w(t) are degree n polynomials.




Advantages of Polynomial-Rational Parametric Curves
Extremely fast point evaluation:
Additions, products (and division for rational)
Operations implemented within microprocessor
GFLOPS (G Floating Point Operations per Second)
Parametric Rational Polynomial
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Rational para. curves: Examples
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Implicit curves
Those plane curves / f(x,y)=0
Algebraic curves f is a degree n polynomial






Advantages: inside-outside classification.
Disadvantages:
It is difficult to model free form curves.
It is also complex to extend this representation to 3D.
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Definition: non algebraic curves
Main drawback: they do not admit an exact computer
representation
Polynomial-rational parametric curves standard CAD
representation
Solution: polynomial-rational fitting
Detection: intersection between a line and a transcendental
curve infinite points
Examples: Logarithmic and Archimedes spiral, helix, catenary

Transcendental curves
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Complex shapes Piecewise parametric curves

Spline curves
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Spline continuity type.
Mechanical applications: G
0
or G
1
tool paths (conventional
machines), G
2
vehicles and High speed machining

Geometric continuity G
r
III Engineering week, Schmalkalden 2013
CAE CAGD

Eng. curves CAD representation Fittin
g
Conclusions

Evaluation via Curvature k(s), s=Arc length parameterization




Quality assessment

III Engineering week, Schmalkalden 2013
Smooth curve if k(s) :
is a continuous function
has few and monotonic segments
ends at specified points

CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Engineering curves
We have two main types of Engineering curves:

Curves with CAD representation:
Polynomial and rational
Applications Design

Curves without CAD representation:
Transcendental curves (examples in the following slides)
CAD incorporation via interpolation or approximation
Lot of engineering applications


III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Engineering curves: Trochoids
Curve described by a fixed point as a circle rolls
outside a circle (Epitrochoid)
inside a circle (Hypotrochoid)
They admit a rational representation


III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Trochoids applications
Design of roots blower rotors.
They handles large quantities of air at a small pressure diff.
Wankel engine: few vibration & mechanical stress at high rpm
Design of gear tooth profiles
III Engineering week, Schmalkalden 2013
Rotary blower
Mazdas Wankel engine
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Catenary
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Clothoid spiral
III Engineering week, Schmalkalden 2013
Curvature is proportional to distance.
Parameterization: Fresnel integrals (Transcendental curve)



Application: road design, roller coasters
Speed = Constant

c(t)
C(t)
S(t)

,
C(t) cos(

2

2
) dz
0
t

S(t) sin(

2

2
) dz
0
t

.
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Involute or evolvent
III Engineering week, Schmalkalden 2013
Definition: Path follow by the end of a string which is wound
tangent to a profile.
It is a transcendental curve.
Application: design of gear teeth
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Offset
III Engineering week, Schmalkalden 2013
Definition: parallel curve c
d
(t)


In general, it is a non polynomial/rational curve
c
d
(t) c(t) t dn(t),
n(t) normal
+ up, - down

.
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Offset: Applications
III Engineering week, Schmalkalden 2013
Tool path and road design
Cam design
CAE CAGD

Curve
s
CAD representation Fittin
g
Conclusions

Offset: representation problems
III Engineering week, Schmalkalden 2013
Self-intersections
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Standard CAD representation
We can incorporate polynomial curves into
CAD but there are different ways to describe a
polynomial.

Our first choice is the monomial basis, but is it
the best representation for CAD?
Next slides try to answer this question

III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Monomial basis
Definition: A way to describe a polynomial using a linear
combination of monomials



Main advantages:
Simple algebraic manipulation: additions, products,
derivation
OK to approximate functions around a point (Taylor, t = 0)
Efficient computing algorithm (Horner)
Everybody learned this representation in high school

III Engineering week, Schmalkalden 2013

Monomialbasis: 1,t,t
2
,...,t
n
{ }
,
Polynomialrepresentation: a(t) a
i
t
i
i0
n

.
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Monomial basis
Disadvantages:
Coefficients have not geometric meaning
Poor numerical properties: small errors in a
i
gaps
Gaps and non geometric meaning are unacceptable for CAD
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Bzier curves
Provide a polynomial representation:
where coefficients have geometric meaning Control
points
without numerical problems no gaps
End control points = curve end points.
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Examples of Bzier curves
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Bernstein polynomials
Definition:

Bzier: combination of control pts via Bernstein polynomials


b
i
Control points
effect of b
i
in the curve shape.
b
i
pulls the curve
(u=i/n Maximum )
III Engineering week, Schmalkalden 2013
B
i
n
(u)
n
i

1 u
( )
n i
u
i
.

b(u) b
i
B
i
n
(u)
i0
n

.
B
i
n
(u)
B
i
n
(u)
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Bzier curves: geometric properties
Affine invariance. Reposition-scale-rotation so on
transformation of control points

III Engineering week, Schmalkalden 2013
Other Application
Typography:
S
S
S
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

End point interpolation. The curve pass through the end control
points no gaps

Linear precision. If bi are aligned line

Convex hull property. B(t) lies in the convex hull of the control
polygon. Application: Interference checking.

Operations like integration and derivation via additions,
products and divisions of control points

Good numerical properties

Bzier curves: geometric properties
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Bzier curves: smoothness conditions
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Bzier curve: Derivation
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Bzier curves: Integration
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Design Example: cam profile
III Engineering week, Schmalkalden 2013
Hypothesis. Constant angular speed

Conditions:
Constraint forces y() is C
1
Avoid jerk y() is C
2


cte
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Rational Bzier curves
III Engineering week, Schmalkalden 2013
Several conic curves (ellipse, circle, hyperbola) can not be
represented by means of a polynomial Bzier curve.
Solution: Rational Bzier curve a perspective transformation


CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Rational Bzier curves
III Engineering week, Schmalkalden 2013
Effect of control points reposition Effect of weight modification


CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Conic construction via Rational Bzier curves
III Engineering week, Schmalkalden 2013
Conic arc
Centre (circle), focus: C
Angle 2
Weights: w
0
w
2
1,w
1

w
1

[0,1] Ellipse (w
2
cos( ), Circle)
1Parabola
[1,] Hyperbola

CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Conics applications
III Engineering week, Schmalkalden 2013
Source: Alternative-energy-tutorials.com
Source: radartutorial.eu
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

B-spline curves
III Engineering week, Schmalkalden 2013
Definition: Spline of Bzier curves same Bzier properties
Application curves with complex shape


d(u) d
i
N
i
n
(u)
i 0
n

. N
i
n
(u) piecewisebasis
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

B-spline versus Bzier
III Engineering week, Schmalkalden 2013
Bzier B-spline
Design
Pseudo local shape
control
Local control
Continuity
guarantee
Complex Simple (polynomial degree - 1)
Evaluation cost
N control points increase
computational cost
It doesnt depend on number
of control points
Implementation Straightforward Complex
CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

Example: Degree n=3 B-spline
III Engineering week, Schmalkalden 2013
Continuity n-1=2
Number of control points p=7
9 knots, Number of pieces m m=p-n=4


CAE CAGD

Curve
s
Eng. curves Fittin
g
Conclusions

NURBS: Non uniform rational B-spline
III Engineering week, Schmalkalden 2013
Definition: Spline of Rational Bzier curves with a non uniform
knot sequence.

CAE CAGD

Curve
s
Eng. curves CAD representation

Conclusions

Fitting
Definition: Construction of a NURBS that approximates a non
polynomial-rational curve
Main fitting techniques:
Approximation. NURBS passes close to a set of points
Interpolation. NURBS satisfies a set of conditions
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves CAD representation

Conclusions

Lagrange Interpolation
Lagrange interpolation: the interpolation curve passes
through an uniformly distributed set of points
Drawbacks:
Runges phenomenon
New data re-compute
III Engineering week, Schmalkalden 2013
Original curve
Degree 4 Lagrange Interpolation
Degree 8 Lagrange Interpolation
Source: wikipedia
CAE CAGD

Curve
s
Eng. curves CAD representation

Conclusions

Hermite Interpolation
Definition: the interpolation curve passes through an non uniformly
distributed set of points data: end points and their derivate
Applications:
Approximation of boundary problems
Useful to control continuity
III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves CAD representation

Conclusions

Approximation
The construction passes close to a set of data.
Complex implementation: iterative algorithm.
Basic approximation technique: Least squared method.

III Engineering week, Schmalkalden 2013
CAE CAGD

Curve
s
Eng. curves CAD representation Fittin
g


Conclusions
CAGD decrease design errors & contribute to
reduce the time to take the market.
CAGD is devoted to Engineering design via curves
and surfaces.
There are different types of curve representations
Bzier B-Spline NURBS is the CAD standard
Advantages: local shape control, fast evaluation and
straightforward implementation of different
operations
To incorporate transcendental curves
Interpolation or approximation (fitting)
III Engineering week, Schmalkalden 2013

You might also like