NRBCIRC: Construct a circular arc. Calling Sequence: crv = nrbcirc() crv = nrbcirc(radius) crv = nrbcirc(radius,center) crv = nrbcirc(radius,center,sang,eang) INPUT: radius : Radius of the circle, default 1.0 center : Center of the circle, default (0,0,0) sang : Start angle, default 0 radians (0 degrees) eang : End angle, default 2*pi radians (360 degrees) OUTPUT: crv : NURBS curve for a circular arc. Description: Constructs NURBS data structure for a circular arc in the x-y plane. If no rhs arguments are supplied a unit circle with center (0.0,0.0) is constructed. Angles are defined as positive in the anti-clockwise direction. Copyright (C) 2000 Mark Spink This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The following code
for r = 1:9 crv = nrbcirc(r,[],45*pi/180,315*pi/180); nrbplot(crv,50); hold on; end hold off; axis equal; title('NURBS construction of several 2D arcs.');
Produces the following figure
Figure 1 |
---|
Package: nurbs