
6~8 CHAPTER II Contexts (Tools)
for( ; !vertlter.isDone(); vertlter.next() )
{
pt = vertlter.position( MSpace::kWorld );
if( inVolume( pt ) )
indexedCompFn.addElement(vertlter.index() );
}
if(!indexedCompFn.isEmpty() )
newSel.add( dagPath, newComponent );
}
MGlobal::setActiveSelectionList( prevSel, MGlobal::kReplaceList );
MGlobal::selectCommand( newSel, listAdjust );
return MS::kSuccess;
}
MStatus SelectVolumeToolCmdl::undolt()
{
return MGlobal::setActiveSelectionList( prevSel,
MGI obal : :kReplaceList) ;
}
MStatus SelectVolumeToolCmdl::finalize()
{
MArgList command;
command.addArg(commandString() );
command.addArg(MString(listAdjustFlag) ...