
560 CHAPTER IO Subdivision Surfaces
SOURCE CODE
Plug-in: SubdToNURBS
File: SubdToNURBSCmd. cpp
class SubOToNURBS : public MPxCommand
{
public:
virtual MStatus dolt ( const MArgList& );
virtual MStatus redolt() ;
virtual MStatus undolt() ;
virtual bool isUndoable() const { return true; }
static void *creator() { return new SubdToNURBS; }
private:
MDagPathArray seISubds;
MObjectArray nurbsTransforms;
}-
MStatus SubdToNURBS::dolt ( const MArgList &args )
{
MSelectionList selection;
MGlobal::getActiveSelectionList( selection );
MDagPath dagPath;
MItSelectionList iter( selection, MFn::kSubdiv );
for (