• Tidak ada hasil yang ditemukan

Representation and manipulation of curves

N/A
N/A
Protected

Academic year: 2024

Membagikan "Representation and manipulation of curves"

Copied!
18
0
0

Teks penuh

(1)

Representation and manipulation of curves

Human Centered CAD Lab.

(2)

B-Rep Structure – review

Body Face Edge

Vertex Vertex

List of faces List of

edges End vertices

< Topology >

< Geometry >

Surface Eqn.

Curve Eqn.

X,Y,Z Position

Geometry vs. Topology

(3)

Types of curve equations

Parametric equation

x=x(t), y=y(t), z=z(t)

Ex) x=Rcos, y=Rsin, z=0 (02)

Implicit nonparametric

F(x, y, z)=0, G(x, y, z)=0

Intersection of two surfaces

Ambiguous independent parameters

Explicit nonparametric

Should choose proper neighboring point during curve generation

,

2 0

2

2 y R

x z  0

2,

2 x

R

y z 0

x

z

θ y

(4)

Conic curves

Curves obtained by intersecting a cone with a plane

Circle (circular arc), ellipse, hyperbola, parabola

Ex) Circle (circular arc)

Circle in xy-plane with center (xc, yc) and radius R

x = Rcos + xc

y = Rsin + yc

z = 0

Points on the circle are generated by incrementing  by △θ from 0, points are connected by line segments

Equation of a circle lying on an arbitrary plane can be derived by transformation

(5)

Conic curves – cont’

(6)

Hermite curves

Parametric eq. is preferred in CAD systems

Polynomial form of degree 3 is preferred :

C2 continuity is guaranteed when two curves are connected

Impossible to predict the shape change from change in coefficients⇒ not intuitive

Bad for interactive manipulation

eq.

algebraic :

) 1 0

(

(1)

)]

( ) ( ) ( [ )

(

0 1 2 2 3 3

u

u u

u u

z u v u x

u a a a a

P

(7)

Hermite curves – cont’

Apply Boundary conditions to replace algebraic coefficients

Use ⇒ Substitute in Eq(1)

(1) (0)

(1)

(0)

, P , P , P

P  

1 0

1

0

, P , P , P

P  

3 2

1 1

(1)

1 0

(0)

3 2

1 0

1 (1)

0 0

(0)

a a

a P

P

a P

P

a a

a a

P P

a P

P

3 2 

 

 

 

 

(2)

(8)

Hermite curves – cont’

Solve for in Eq (2)

a

0

, a

1

, a

2

, a

3

1 0

1 0

1 0

0

P - P P

- P a

P P

P P

- a

P a

P a

 

 

 

2 2

- 2

- 3

3

3

0 1

0 2

0

1 (3)

(9)

Hermite curves – cont’

Substitute (3) into (1)

It is possible to predict the curve shape change from the change in P0, P1, P0, P1 to some extent

 

equation curve

Hermite

u u

u 2u

u 2u

3u 2u

3u 1

(u)

t t coefficien geomet ric

1 0 1 0

3 2

3 2

3 2

3 2

P P P P P

(10)

Hermite curves – cont’

(11)

Hermite curves – cont’

determine the curve shape by blending the effects of P0, P1, P0, P1→ blending function

3 2

3 2

3 2

3

2

2 , 3 2 , 2 ,

3

1  u  u u  u u  u  u  u  u

(12)

Bezier curves

It is difficult to realize a curve in one’s mind by

changing size and direction of P0, P1 in Hermite curves

Bezier curves

Invented by Bezier at Renault

Use polygon that enclose a curve approximately

control polygon, control point

(13)

Bezier curves – cont’

Passes through 1st and last vertex of control polygon

Tangent vector at the starting point is in the direction of 1st segment of control polygon

Tangent vector at the ending point is in the direction of the last segment

Useful feature for smooth connection of two Bezier curves

The n-th derivative at starting or ending point is

determined by the first or last (n+1) vertices of control polygon

Bezier curve resides completely inside its convex hull

Useful property for efficient calculation of intersection points

(14)

Bezier curves – cont’

(15)

Bezier curves – cont’

1) u

(0 u)

(1 i u

(u) n n i n i i

0

i    

 

 

P

P

1

u P(u)

)

1 ( )

( P0 P1

P u u u

1 )

1 ( 2 )

1 (

)

1 ( 2 )

1 ( ) (

2 2

2 2 1

0 2

u u u u

u u

u u

u P P P

P

Control Point

: Straight line from P0 to P1 satisfies the desired qualities including convex hull property

satisfies the desired qualities

(16)

Bezier curves – cont’

Highest term is for the curve defined by (n+1) control points

Polynomial of degree n

Degree of curve is determined by number of control points

Large number of control points are needed to represent a curve of complex shape → high degree is necessary.

Heavy computation, oscillation

Better to connect multiple Bezier curves

Global modification property (not local modification)

Difficult to result a curve of desired shape by modifying portions

u

n
(17)

Blending functions in Bezier curve

for degree 3

(18)

Bezier curves – cont’

Referensi

Dokumen terkait

Changes in oxidative stability index h at 120◦C of palm-olein oil with different concentrations of copper and a control without copper during storage for 52 weeks at 50◦C: diamonds,