// ==========================================================================
// Domingos, 31/05/2010
// [email protected]
// visual3dtools.blogspot.com
//
// ==========================================================================
#include <maya/MIOStream.h>
#include <math.h>
#include <maya/MFnPlugin.h>
#include <maya/MPoint.h>
#include <maya/MPointArray.h>
#include <maya/MDoubleArray.h>
#include <maya/MVector.h>
#include <maya/MVectorArray.h>
#include <maya/MGlobal.h>
#include <maya/MString.h>
#include <maya/MStringArray.h>
#include <maya/MItMeshPolygon.h>
#include <maya/MPxCommand.h>
#include <maya/MArgList.h>
#include <maya/MDagPath.h>
#include <maya/MSelectionList.h>
#include <maya/MItSelectionList.h>
#include <maya/MCommandResult.h>
public:
getMeshPoint();
virtual ~getMeshPoint();
//---------------------
void* getMeshPoint::creator()
{
return new getMeshPoint();
}
getMeshPoint::getMeshPoint(){}
getMeshPoint::~getMeshPoint(){}
//-------------------------
MSelectionList selList;
MDagPath dagPath;
MObject geo;
MPointArray vertex;
MPointArray Vlist;
//get first object selected
MGlobal::getActiveSelectionList( selList );
stat=selList.getDagPath(0,dagPath);
if ( dagPath.fullPathName()=="" ){
cout<<"No Geometry selected."<<endl;
return stat;
}
return stat;
}
//-------------------------------
return status;
}
return status;
}