• Tidak ada hasil yang ditemukan

Rational Quadratic Bezier Curves

N/A
N/A
Protected

Academic year: 2023

Membagikan "Rational Quadratic Bezier Curves"

Copied!
5
0
0

Teks penuh

(1)

Drawing Circles with

Rational Quadratic Bezier Curves

Detlef Reimers, [email protected]

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 betweenP0P1 and P1P2, then the conic will be a circular arc, if also both length P0P1 and P1P2 are equal.

We have to smothly join several of these arcs together, to get a full circle. Only in the case of two segments, we have have to use one negative weight. In all other cases we only have positive weights. In all of the following calculations and drawings we assume, that the center of the circle lies at the origin.

(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 segmentsn.

3. Calculate α= 360 2n .

4. Calculate outer radius R= r cos(α).

5. Calculate all even bezier points P2i= +r·sin(2i·α)

−r·cos(2i·α)

!

fori= 0. . . n.

6. Calculate odd bezier points P2i+1 = +R·sin((2i+ 1)·α)

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

!

fori= 0. . . n−1.

(3)

2 Segments

- 6

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

3 Segments

- 6

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

(4)

-

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

5 Segments

- 6

Circle with 2n+ 1 = 11 points (w2n= 1 and w2n+1= cos(36) = 0.809).

(5)

6 Segments

- 6

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

7 Segments

- 6

Circle with 2n+ 1 = 15 points (w2n= 1 and w2n+1 = cos(25.71) = 0.901).

Referensi

Dokumen terkait

Rational normal curves totally tangent to Hermitian varieties 島田 伊知朗 (広島大・理) pを素数とし,qをpのべき,kを有限体Fq2の代数閉包とする.射影空間 PnのFq2 上定義された超曲面は,q+ 1次Fermat多様体 XI : xq+10 +· · ·+xq+1n = 0 とFq2

Geometry ofFi,d1 andZi,d1 We defined Fi,d1 as the stratum of points parametrizing curves of splitting type {i,n},{i,n}cwhere marked points pi and pn are on a rational curve connected