Академический Документы
Профессиональный Документы
Культура Документы
Manuel Ventura
Ship Design I
MSc in Marine Engineering and Naval Architecture
Summary
1. Parametric Curves
2. Parametric Surfaces
M.Ventura
Introduction to Geometric
Modeling
Parametric Curves
1. Mathematical Formulations
Cubic Splines
Bzier
B-Spline
Beta-Spline
NURBS
M.Ventura
Introduction to Geometric
Modeling
y ( x ) =
M ( x)
EI
where:
E Modulus of Young
I Moment of inertia of the beam section
M.Ventura
Introduction to Geometric
Modeling
M ( x)
1
dx =
( Ax + B)dx = Ax 3 + Bx 2 + Cx + D
EI
EI
P( t ) = At 3 + Bt 2 + Ct + D
The constants can be obtained from the
following boundary conditions:
M.Ventura
Introduction to Geometric
Modeling
P (0) = p0
P (1) = p
(
)
P
0
T
=
0
P(1) = T1
P (t ) = t 3
t2
t 1 [H ][G ]
where
+ 2 2 + 1 + 1
3 + 3 2 1
[ H ] = 0 0 + 1 0
0
0
+ 1 0
M.Ventura
pi
p
G
=
[ ] Ti+1
i
T
i +1
Introduction to Geometric
Modeling
P( t ) = Ci B n , i( t )
i=0
for 0 t 1
Bn,i =
n!
(1 t ) ni t i
i !(n i )!
n
n i
= (1 t ) t i
i
M.Ventura
for i = 0, 1, ..., n
Introduction to Geometric
Modeling
M.Ventura
Introduction to Geometric
Modeling
Ck (t ) = Pi Ni , k (t )
i =0
Where Ci are the points of the control polygon and Ni,k are the B-Spline
base functions, of order k, that can be computed by the recursive
expression from Cox/de Boor:
X = { t1 , t 2 , t3 ,..., t m }
Introduction to Geometric
Modeling
Introduction to Geometric
Modeling
10
Introduction to Geometric
Modeling
11
Beta-Splines (1)
Os cubic Beta-splines were introduced on 1981 by Barsky
They are a generalization of the B-Splines based in notions
of geometric continuity and in the mathematical modeling of
tension
The requirements of parametric continuity of the 2 order
(C2) between the B-Splines segments is replaced by the
requirements of geometric continuity of 2 order (G2) of the
unit tangent vector and of the curvature vector
This originates discontinuities of the 1st and 2nd parametric
derivative, that are expressed as functions of the
parameters 1 and 2, designated by bias and tension,
respectively.
M.Ventura
Introduction to Geometric
Modeling
12
Beta-Splines (2)
A Beta-spline curve is defined by:
Ci (u ) =
b ( , ; u )P
r = 2
i+r
p/ 0 i <1
br ( 1 , 2 ; u ) = cgr ( 1 , 2 )u g
p / 0 u < 1 e r = 2,1,0,1
g =0
Introduction to Geometric
Modeling
13
NURBS Curves
P w N
n
C (u ) =
i.
i, p
(u )
i =0
w N
n
i.
i, p
(u )
i =0
Introduction to Geometric
Modeling
14
kc =
w1. w3
4. w22
M.Ventura
Introduction to Geometric
Modeling
15
(1 + 4b )
2
R=
where:
4b
Complete circumferences can be
represented joining arcs
b=
k 2 1
2
X = {0,0,0,0.25,0.25,0.5,0.5,0.75,0.75,10
. ,10
. ,10
. }
W = 10
. ,
,10
. ,
,10
. ,
,10
. ,
P = {P1 , P2 , P3 , P4 , P5 , P6 , P7 , P8 , P9 }
M.Ventura
,10
.
Introduction to Geometric
Modeling
16
X = {0,0,0,0.25,0.5,0.5,0.75,10
. ,10
. ,10
. }
W = {10
. ,0.5,0.5,10
. ,0.5,0.5,10
. }
P = {P1 , P2 , P3 , P4 , P5 , P6 , P7 }
M.Ventura
Introduction to Geometric
Modeling
17
1 1 2 2
X = 0,0,0, , , , ,10
. ,10
. ,10
.
3 3 3 3
W = {10
. ,0.5,1,0.5,10
. ,0.5,10
.}
P = { P1 , P2 , P3 , P4 , P5 , P6 }
M.Ventura
Introduction to Geometric
Modeling
18
X = {0.0,0.0,0.0,0.25,0.5,0.5,0.75,10
. ,10
. ,10
.}
W = {10
. ,0.5,0.5,10
. ,0.5,0.5,10
. }
P = {P1 , P2 , P3 , P4 , P5 , P6 , P7 }
M.Ventura
Introduction to Geometric
Modeling
19
Disadvantages
Cubic Spline
Interpolates data
points
Can present
unexpected
inflections
Bzier
Global behavior
Degree increases
directly with the
increasing number
of control points
M.Ventura
Introduction to Geometric
Modeling
Obs.
20
10
Local behavior
Degree independent
of the number of
control points
Beta-Spline
Two additional
parameters to
control (bias and
tension)
NURBS
Accurate
representation of
conics
M.Ventura
Disvantages
Obs.
Can NOT
represent conic
shapes accurately
Used in fairing
methods
It is difficult to
take advantage of
the additional
coordinate
(weight)
Introduction to Geometric
Modeling
21
Curve Generation
Interpolation (curve
contains all the data points)
M.Ventura
Approximation (curve
tries to minimize the
distance to all the data
points)
Introduction to Geometric
Modeling
22
11
(t) =
x (t ) x (t )
3
x (t )
M.Ventura
Introduction to Geometric
Modeling
23
M.Ventura
Introduction to Geometric
Modeling
24
12
Parametric Surfaces
1. NURBS Surfaces
2. Surfaces Generation
Extrusion
Lofting
Sweeping
Revolution
Grid Interpolation
Primitives
3. Surface Analysis
Shading
Contours
Curvatures
Isophotes
Reflection Lines
M.Ventura
Introduction to Geometric
Modeling
25
NURBS Surfaces
A NURBS surface of degree (k,l) in the directions (u,v) is
defined by the expression:
m
P
n
i, j .
S (u, v ) =
wi , j . Ni ,k (u ) M j ,l (v )
j =0
m
n
i =0
i, j .
i =0
Ni ,0(u ) = 1 p /
=0
ui u < ui + 1
u ui
Ni , k (u ) =
Ni , k 1(u ) +
ui + k ui
ui + k u
Ni + 1, k 1(u )
ui + k ui + 1
M.Ventura
Ni ,k (u ) M j ,l (v )
j =0
Mj , 0 ( v ) = 1 p /
v j v < vj + 1
=0
v vj
Mj , l 1( v ) +
vj + l v j
vj + l v
Mj + 1, l 1( v )
vj + l vj + 1
Mj , l ( v ) =
Introduction to Geometric
Modeling
26
13
Extrusion
Trajectory (directriz)
Profile (geratriz)
M.Ventura
Introduction to Geometric
Modeling
27
Lofting
Sections
M.Ventura
Introduction to Geometric
Modeling
28
14
Lofting in Shipbuilding
The designation lofting has
origin in shipbuilding
Designates the
development of the ship
hull surface interpolating
the shape of a set of cross
sections, that was carried
out in the loft room (sala
do risco)
The primitive building process was
similar to the modeling process,
using the frames to shape the hull
surface form.
M.Ventura
Introduction to Geometric
Modeling
29
Sweeping
Profile (geratriz)
Trajectory (directriz)
M.Ventura
Introduction to Geometric
Modeling
30
15
Surfaces of Revolution
Profile (geratriz)
Axis (Eixo de rotao)
M.Ventura
Introduction to Geometric
Modeling
31
Edge Curves
Surfaces
defined by 2,
3, or 4 edge
curves
M.Ventura
Introduction to Geometric
Modeling
32
16
Grid Interpolation
Surface generated from a regular grid of curves
Provide a better control over the inner shape of the surface
M.Ventura
Introduction to Geometric
Modeling
33
M.Ventura
Introduction to Geometric
Modeling
34
17
Shading
M.Ventura
Introduction to Geometric
Modeling
35
M.Ventura
Introduction to Geometric
Modeling
36
18
Isophotes:
Analyze/Surface/Zebra
n L = cos
M.Ventura
Introduction to Geometric
Modeling
37
H=
Curvatures expressed as
a function of the max.
and min. curvatures
2 FM ( EN + GL)
2( EG F 2 )
Gauss Curvature
K=
H=
LN M 2
EG F 2
K = min max
E = ru . ru
F = ru . rv
G = rv . rv
L = n. ru
M.Ventura
1
( min + max )
2
M = n. ruv
N = n. rvv
Introduction to Geometric
Modeling
n=
ru rv
ru rv
p/ ru rv 0
38
19
Mean Curvature
M.Ventura
Introduction to Geometric
Modeling
39
Gauss Curvature
M.Ventura
K<0
K=0
Developable surface
K>0
40
20