• No results found

Projected Curves

N/A
N/A
Protected

Academic year: 2022

Share "Projected Curves"

Copied!
25
0
0

Loading.... (view fulltext now)

Full text

(1)

Title Page

Contents

JJ II

J I

Page1of25

Go Back

Full Screen

Close

Curve and Surface Constructions

Milind Sohoni

http://www.cse.iitb.ac.in/˜ sohoni

(2)

Title Page

Contents

JJ II

J I

Page2of25

Go Back

Full Screen

Close

Quit

Introduction

This talk is about the creation of curves and surfaces. These are created by the kernel, say as:

• Projected Curves

• Surface-Surface intersections.

Extrudes.

Blends.

Offsets.

As opposed to the earlier, which was about thecreation of pointswith special properties, this is about the construction of higher dimensional entities such as curves and surfaces. The basic paradigm is:

1. Create Points in a systematic fashion.

2. String them up as control points of a curve/surface.

(3)

Title Page

Contents

JJ II

J I

Page3of25

Go Back

Full Screen

Close

Projected Curves

Let

C

be a curve and

S

be a surface. The projected curve

proj

(C, S) con- sists of all points

q

S

obtained by projecting points

p

C

(t) onto

S

. The simplest constructor for this is seemingly straight-forward:

1. Depending on tolerance requirements, choose a∆.

2. For

a

+

n∆

∈ [a, b], project

C

(a +

n∆) = p

n to get

q

n. 3. Define

C

0 with control points

q

0

, . . . , q

N.

q0

qN p0

pi

pN

qi Curve[a,b]

Surface

(4)

Title Page

Contents

JJ II

J I

Page4of25

Go Back

Full Screen

Close

Quit

Not So Simple....

Here is a bad case: The curve

C

is close to the axis of the almost cylindrical surface. As a result the projected curve is highly unstable.

projected curve original curve p0

p1

p2 q1

q2 q0

This situation has to be detected and the user alerted.

(5)

Title Page

Contents

JJ II

J I

Page5of25

Go Back

Full Screen

Close

Quit

Lets tackle the point-projection on a curve, which too has the same instabil- ity.

p

q

p’

q’

Let

C

be a curve, and p = (0, h) be a point so that the point q = (0,0) is the closest point to

p

on

C

. Furthermore, let us assume that

C

is given by

y = a2

2!x2 + a3

3!x3 +. . .

Now we exmaine the pointp0 = (, h) and see howq0 = (x0, y0) moves.

(6)

Title Page

Contents

JJ II

J I

Page6of25

Go Back

Full Screen

Close

Quit

Perturbation Analysis

The equation is the the line

p

0

q

0 is perpendicular to the tangent at

q

0. Given the equation defining

C

, we see that:

dy

dx = a2x + a3

21x2 + . . . The perpendicularity condition translates to:

(a2x0 + a3

21x20 + . . .) · (y0 − h

x0 − ) = −1 Simplifying this, and substituting for

y

0, we get:

(a2x0 + a3

21x20 + . . .) · (a2

2!x20 + a3

3!x30 + . . .− h) = − x0

(7)

Title Page

Contents

JJ II

J I

Page7of25

Go Back

Full Screen

Close

Finally...

Re-organizing:

(a2x0 + a3

21x20 + . . .) · (a2

2!x20 + a3

3!x30 + . . .− h) = − x0 We see that:

(1− a2h)x0 + ha3

2! x20 +. . . =

By classical analysis, this can be inverted iff the linear term is non-zero i.e., (a2

h

− 1) 6= 0. The inverse is:

x0 = 1

1− a2h +. . . higher terms

The constant

a

2 is called the curvature of the curve at the point

q

and a1

2 as the radius of curvature.

We see that if

p

is normally away from

q

exactly distance a1

2 away, then the projection is unstable.

(8)

Title Page

Contents

JJ II

J I

Page8of25

Go Back

Full Screen

Close

Quit

And Pictorially

p

q

p’

q’

a2 1

The detection is done by computing the constant a

2

and comparing

a1

2

with h. Note that a

2 =

f

00(0)

is the double derivative.

(9)

Title Page

Contents

JJ II

J I

Page9of25

Go Back

Full Screen

Close

Surface-Surface Intersection

Let

S

1 and

S

2 be two surfaces. we are required to find the curve of intersec- tion. The strategy:

1. Select a sequence of parameter values

u

i for

S

2.

2. Construct iso-parametric curves

C

(ui) and intersect with

S

1 to construct the point

p

i.

3. String up

p

i into a control polygon.

S1

S2

pi=C(ui) intersection S1 Curve

C(ui):iso−parametric on S2

(10)

Title Page

Contents

JJ II

J I

Page10of25

Go Back

Full Screen

Close

Quit

Issues

• Start of parameter value, its range, and the increment ∆.

• Constructions of iso-para curves.

• Delicate issue: Critical Points

u−critical point C(vj) C(ui)

S1

S2

Thus such critical points have to be discovereda and the parameter must be moved from

u

to

v

.

aHow is this discovered?

(11)

Title Page

Contents

JJ II

J I

Page11of25

Go Back

Full Screen

Close

Trim Curves

What happens to the surfaces after having undergoneintersections?

S1 S2

actual trim curve

curve computed trim

Parameter Space

Domain curve

intersection

Note that the intersector throws out parameter values of the points of inter- sections. These are then strung up to get the trim curves.

Usually, the pre-image of the actual intersection curve, and the computed trim curve aredifferent.

(12)

Title Page

Contents

JJ II

J I

Page12of25

Go Back

Full Screen

Close

Quit

Offset Curves

Let

C

be a curve in a plane, and

r >

0be a real number. The offset

C

r is the curve obtained by points which are exactly a normal distance

r

away from points on

C

.

p

q r

offset Cr C The algorithm is simple:

1. Select points

p

i on the curve

C

.

2. Move them normally by a distance

r

to get

q

i. 3. Construct

C

r from this collection {

q

i}.

(13)

Title Page

Contents

JJ II

J I

Page13of25

Go Back

Full Screen

Close

However...

There are bad cases.

critical point curve

offset

Even worse!

These have to be detected and the user alerted. Most kernels must support the first case above. Thus the offset of1smooth curve may result in 2curves which do

not

meet smoothly.

(14)

Title Page

Contents

JJ II

J I

Page14of25

Go Back

Full Screen

Close

Quit

Now to Surfaces: Extrude

Recall that the extrude is defined by a profile

P

on a plane. The surface is obtained by sweeping this profile in a direction normal to the plane.

curve3 Extrude surface 2

profile

curve2 curve1

(15)

Title Page

Contents

JJ II

J I

Page15of25

Go Back

Full Screen

Close

The Construction

The basic steps are:

1. Unhook the profile into constituent curves and take them individually for surface geometry creation.

2. Create surface geometry as a tensor-product surface.

3. Combine these to form the faces of the extrude.

curve

control polygon

tensor product polygon

(16)

Title Page

Contents

JJ II

J I

Page16of25

Go Back

Full Screen

Close

Quit

Drafted Extrudes

Frequently, the extrude has to be drafted by an angle

d

for manufacturing ease.

curve normal plane

normal

draft angle d

h.tan(d) offset=

offset curve

h surface line

This causes the surface to lose the nice tensor-product construction. Now, for every point on the profile, we construct the surface line as shown. Points are taken on this line in a systematic manner.

Also note that these are also obtained by a sequence of offsets.

(17)

Title Page

Contents

JJ II

J I

Page17of25

Go Back

Full Screen

Close

Offset Surfaces

These are analogous to offset curves. If

S

is a surface and

r >

0, then

S

r, the offset, is the locus of the center of a ball of radiusr rolling on S.

These are constructed easily by picking points on

p

S

and moving then normally by a distance

r

. There are the usual critical points which need to be handled.

p q

p p’

The Surface Offset and the usual problem offset

surface

q

(18)

Title Page

Contents

JJ II

J I

Page18of25

Go Back

Full Screen

Close

Quit

Blends

This is one of the most sophisticated of surface constructions.

The blend on the edge between surfaces

S

1 and

S

2 is defined as theenvelope of a rolling ball which is in contact with both S1 and S2.

S1 S2

spring curves rolling ball

point of contact

blend face edge to

be blended

S1 S2

S2 S1

B B

(19)

Title Page

Contents

JJ II

J I

Page19of25

Go Back

Full Screen

Close

The 2D case First

So let

C

1

, C

2 meet at a sharp vertex, which needs to be blended with radius

r

.

r

blend edge

p1 p2

O

C1 C2

The first task is to determine the points of contact p1 and p2 and the centre O of the circle.

Point O is first computed by intersecting the offsets of C1 and C2.

(20)

Title Page

Contents

JJ II

J I

Page20of25

Go Back

Full Screen

Close

Quit

The 2D case First

So let

C

1

, C

2 meet at a sharp vertex, which needs to be blended with radius

r

.

r

blend edge

p1 p2

O

C1 C2

The first task is to determine the points of contact

p

1 and

p

2 and the centre

O

of the circle.

Point

O

is first computed by intersecting the offsets of

C

1 and

C

2.

(21)

Title Page

Contents

JJ II

J I

Page21of25

Go Back

Full Screen

Close

Quit

blend edge O C2

C1

offsets

p1 p2

projections O

Having determined

O

, getting

p

1 and

p

2 are easy:

They are just the projections ofO on C1 and C2. Now,

C

1 and

C

2 are truncated at

p

1 and

p

2.

• A circular segment with centre

O

, radius

r

is fitted.

(22)

Title Page

Contents

JJ II

J I

Page22of25

Go Back

Full Screen

Close

Quit

The 3d Case

point of

curves

S2 S1

O1 offsets O2

contact rolling ball

spring

spine

The locus of the point of contacts are called the spring curves. The blend face

B

is inserted between the spring curves.

The process is:

1. Define thespine to be the locus of the center of the rolling ball. This spine is computed as the intersection of the offsets

O

1 and

O

2 of the surfaces.

(23)

Title Page

Contents

JJ II

J I

Page23of25

Go Back

Full Screen

Close

The Spring Curves

spine

spine

spring1 spring2

projections

2. Compute the Spring Curves as the projections of the spine on

S

1 and

S

2. Prune

S

1 and

S

2 upto the spring curves.

(24)

Title Page

Contents

JJ II

J I

Page24of25

Go Back

Full Screen

Close

Quit

The Surface Curves

spine

spring1 spring2

projections

spine

spring1 spring2

p

q2 surface curve

great circle q1

3. The blend surface

B

is created by identifying circles which lie on

B

. Every point

p

on the spine determines, by projection, two points

q

1 and

q

2. The great circle is the one which(i) lies in the plane defined by

p

,

q

1 and

q

2, (ii) has

p

as its center, and (iii) passes through points

q

1 and

q

2.

(25)

Title Page

Contents

JJ II

J I

Page25of25

Go Back

Full Screen

Close

Surface Construction

Thus we see that surface construction usually involves first identifying curves which must lie on the surface, and then stringing them up into the complete surface.

Identification of surface curves is a tricky matter.

Surfaces created via this paradigm include:

Sweeps

Revolves

And those which are NOT:

VERTEX BLENDS

References

Related documents

The Congo has ratified CITES and other international conventions relevant to shark conservation and management, notably the Convention on the Conservation of Migratory

Corporations such as Coca Cola (through its Replenish Africa Initiative, RAIN, Reckitt Benckiser Group and Procter and Gamble have signalled their willingness to commit

In a slightly advanced 2.04 mm stage although the gut remains tubular,.the yent has shifted anteriorly and opens below the 11th myomere (Kuthalingam, 1959). In leptocephali of

INDEPENDENT MONITORING BOARD | RECOMMENDED ACTION.. Rationale: Repeatedly, in field surveys, from front-line polio workers, and in meeting after meeting, it has become clear that

Angola Benin Burkina Faso Burundi Central African Republic Chad Comoros Democratic Republic of the Congo Djibouti Eritrea Ethiopia Gambia Guinea Guinea-Bissau Haiti Lesotho

3.6., which is a Smith Predictor based NCS (SPNCS). The plant model is considered in the minor feedback loop with a virtual time delay to compensate for networked induced

Daystar Downloaded from www.worldscientific.com by INDIAN INSTITUTE OF ASTROPHYSICS BANGALORE on 02/02/21.. Re-use and distribution is strictly not permitted, except for Open

The Education Cess on income-tax shall continue to be levied at the rate of two per cent on the amount of tax computed inclusive of surcharge. In addition, the amount of tax