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.

curve2, curve3<br />

Purpose<br />

curve2, curve3<br />

Constructor function for curve objects.<br />

Syntax<br />

Description<br />

c3 = curve3(x,y,z)<br />

c3 = curve3(x,y,z,w)<br />

c3 = curve3(vtx,vtxpre,edg,edgpre,fac,mfdpre,mfd)<br />

[c3,...] = curve3(g3,...)<br />

c3 = curve3(g2)<br />

c2 = curve2(x,y)<br />

c2 = curve2(x,y,w)<br />

c2 = curve2(vtx,edg,mfd)<br />

[c2,...] = curve2(g2,...)<br />

c3 = curve3(x,y,z) creates a 3D curve object. The degree is determined from<br />

the number of control points given in the vectors, x, y and z. Length 2 generates a<br />

straight line. Lengths 3 and 4 generates rational Bézier curves of degrees 2 and 3<br />

respectively. Unit weights are used.<br />

c3 = curve3(x,y,z,w) works similarly to the above, but also applies the positive<br />

weights w to the control points of the curve.<br />

c3 = curve3(vtx,vtxpre,edg,edgpre,fac,mfdpre,mfd) creates 3D curve<br />

geometry object c3 from the arguments vtx, vtxpre, edg, edgpre, fac, mfdpre,<br />

mfd. The arguments must define a valid 3D curve object. See geom3 for a<br />

description of the arguments.<br />

[c3,...] = curve3(g3,...) coerces the 3D geometry object g3 to a 3D curve<br />

object c3.<br />

c3 = curve3(g2) coerces the 2D geometry object g2 to a 3D curve object c3, by<br />

embedding it in the plane z = 0.<br />

c2 = curve2(x,y) creates a 2D curve object in the form of a Bézier curve, with<br />

the control points given by the vectors x and y of the same lengths. Length 2<br />

generates a straight line. Lengths 3 and 4 generates rational Bézier curves of degrees<br />

2 and 3, respectively. Unit weights are used.<br />

c2 = curve2(x,y,w) works similarly to the above, but also applies the positive<br />

weights w to the control points of the curve.<br />

c2 = curve2(vtx,edg,mfd) creates a 2D curve object from the properties vtx,<br />

edg, and mfd. The arguments must define a valid 2D curve object. See geom2 for a<br />

description of the arguments.<br />

[c2,...] = curve2(g2,...) coerces the 2D geometry object g2 to a 2D curve<br />

object.<br />

46 | CHAPTER 1: COMMAND REFERENCE

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

Saved successfully!

Ooh no, something went wrong!