• No results found

Drawing Circles with Rational Quadratic Bezier Curves

N/A
N/A
Protected

Academic year: 2021

Share "Drawing Circles with Rational Quadratic Bezier Curves"

Copied!
5
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Drawing Circles

with

Rational Quadratic Bezier Curves

Detlef Reimers, detlefreimers@gmx.de

September 1, 2011

Description

This document explains, how to calculate the bezier points for complete circles. These can be drawn with the Rcurve commmand from the lapdf.sty. If the weight of the point P1 is w = cos(α), where α ist the angle

between P0P1 and P1P2, then the conic will be a circular arc, if also both length P0P1 and P1P2 are equal.

(2)

P1 P2 P3 P7 P8 P9 P0 = P10 r R α

We always put P0 at the bottom of the circle and all other points follow counterclockwise. This is the general

procedure for circle construction with rational quadratic bezier curves (see picture): 1. Set the radius r.

2. Set the number of bezier segments n. 3. Calculate α = 360

2n .

4. Calculate outer radius R = r cos(α). 5. Calculate all even bezier points P2i=

+r · sin(2i · α) −r · cos(2i · α)

!

for i = 0 . . . n.

6. Calculate odd bezier points P2i+1=

+R · sin((2i + 1) · α) −R · cos((2i + 1) · α)

!

(3)

2 Segments

-6

Circle with 2n + 1 = 5 points (w2n= 1 and w2n+1= ± cos(60◦) = ±0.5).

3 Segments

-6

(4)

-Circle with 2n + 1 = 9 points (w2n= 1 and w2n+1= cos(45◦) = 0.707).

5 Segments

-6

(5)

6 Segments

-6

Circle with 2n + 1 = 13 points (w2n= 1 and w2n+1= cos(30◦) = 0.866).

7 Segments

-6

Referenties

GERELATEERDE DOCUMENTEN

This paper 19 devoted to the deacnption and analysis of a new algonthm to factor positive mtegers It depends on the use of elliptic curves The new m et b öd α obtained from

For these other methods the running time is basically independent of the size of the prime factors of n, whereas the elliptic curve method is substantially faster if the second

In the behavioral framework, the QDF’s have been playing a crucial role in many aspects of system and control the- ory: Lyapunov stability (Willems and Trentelman 1998, Peeters

The first three expressions clearly show that we only used repeated linear interpolation to compute a curve point and we can state, that this curve construction is affine

Now you can draw arbitrary lines, polygons, integral and rational bezier curves up to a degree of seven within your pdfTEX document.. The LAPDF style allows to draw directly with

The proof for this needs some insight in projective geometry and it’s rather involved, so I only give here the general rule for drawing complete rational Bezier curves: Make every

Rational curves also allow to draw exact conics like ellipses, circles, parabolas and

Above of this all curves are hyperbolas with increasing weigts, below of this are elliptic curves with decreasing weights.. After this the weights are