rsmak
Put together rational spline for standard geometric shapes
Syntax
rs = rsmak(shape,parameters)
Description
rs = rsmak(shape,parameters)
provides a rational spline in
rBform that describes the shape being specified by the character vector or string
scalar shape
and the optional additional
parameters
. Specific choices for shape
are:
rsmak('arc',radius,center,[alpha,beta]) rsmak('circle',radius,center) rsmak('cone',radius,halfheight) rsmak('cylinder',radius,height) rsmak('southcap',radius,center) rsmak('torus',radius,ratio)
with 1
the default value for radius
,
halfheight
and height
, and the origin the
default for center
, and the arc running through all the angles
from alpha
to beta
(default is
[-pi/2,pi/2]
), and the cone, cylinder, and torus centered at
the origin with their major circle in the (x,y)-plane, and the minor circle of the
torus having radius radius*ratio
, the default for
ratio
being 1/3
.
From these, one may generate related shapes by affine transformations, with the
help of fncmb
(rs,transformation)
.
See rpmak
for more information on other
options.