21.01.2015 Views

COMSOL Multiphysics™

COMSOL Multiphysics™

COMSOL Multiphysics™

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BezierCurve<br />

BezierCurve<br />

Supported Versions 0<br />

Subtype of<br />

Fields<br />

BezierMfd<br />

The class is defined by the following fields<br />

ENTITY/<br />

OBJECT<br />

integer<br />

BezierMfd<br />

DESCRIPTION<br />

Version<br />

Parent class containing common data<br />

Description<br />

A rational Bézier curve is a parameterized curve of the form<br />

b()<br />

t<br />

=<br />

p<br />

∑<br />

i = 0<br />

p<br />

∑<br />

i = 0<br />

p<br />

b i w i<br />

B i () t<br />

------------------------------------- , 0 ≤ t ≤ 1<br />

p<br />

w i<br />

B i () t<br />

where the functions<br />

p p<br />

B i () t ⎛ ⎞ i p – i<br />

=<br />

⎝i⎠<br />

t ( 1 – t)<br />

are the Bernstein basis functions of degree p, b i<br />

= ( x 1<br />

,…,<br />

x n<br />

) are the control<br />

vertices of the n-dimensional space, and w i are the weights, which should always be<br />

positive real numbers to get a properly defined rational Bézier curve. A rational<br />

Bézier curve has a direction defined by the parameter t.<br />

Example<br />

The following illustrates a linear Bézier curve.<br />

11 BezierCurve # class<br />

0 0 # version<br />

2 # sdim<br />

0 2 1 # transformation<br />

1 0 # degrees<br />

2 # number of control points<br />

# control point coords and weights<br />

0 0 1<br />

1 1 1<br />

See also<br />

BSplineCurve<br />

432 | CHAPTER 3: THE <strong>COMSOL</strong> MULTIPHYSICS FILES

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!