
4~6 CHAPTER 9 NURBS
MObject objTransform = surfaceFn.create( cvs, knotsU, knotsV,
degree, degree,
MFnNurbsSurface: : kPeriodic,
MFnNurbsSurface: : kOpen,
false, MObject::kNullObj,
&stat ) ;
The transform object is returned.
° . .
return objTransform.
The
dolt
function simply retrieves the command flags and then calls the red0It
function.
MStatus TubeCmd..dolt( const MArgList &args )
{
The command arguments are initialized to their default values.
° ° °
innerRadius.setValue( 0.5 )"
outerRadius.setValue( 1.0 )"
height.setValue( 3.0 )"
circumSpans = 6-
heightSpans = 2"
degree = 3-
° , ,
The
redo lt
function ...