#include <maya/MIOStream.h>
#include <maya/MGlobal.h>
#include <maya/MFnSet.h>
#include <maya/MDagPath.h>
#include <maya/MItDependencyGraph.h>
#include <maya/MPlug.h>
#include <maya/MItMeshPolygon.h>
#include "polyWriter.h"
{
fMesh =
new MFnMesh(*fDagPath, &status);
}
polyWriter::~polyWriter()
{
if (NULL != fDagPath) delete fDagPath;
if (NULL != fMesh) delete fMesh;
}
MStatus polyWriter::extractGeometry()
{
}
}
}
}
}
}
fDagPath->extendToShape();
int instanceNum = 0;
if (fDagPath->isInstanced())
instanceNum = fDagPath->instanceNumber();
if (!fMesh->getConnectedSetsAndMembers(instanceNum, fPolygonSets, fPolygonComponents, true)) {
}
}
void polyWriter::outputTabs(ostream& os, unsigned int tabCount)
{
unsigned int i;
for (i = 0; i < tabCount; i++) {
os << "\t";
}
}
{
MPlug shaderPlug = fnNode.findPlug(
"surfaceShader");
shaderPlug.
connectedTo(connectedPlugs,
true,
false, &status);
}
if (1 != connectedPlugs.
length()) {
} else {
return connectedPlugs[0].node();
}
}
}
MStatus polyWriter::outputSets(ostream& os)
{
unsigned int setCount = fPolygonSets.length();
if (setCount > 1) {
setCount--;
}
unsigned int i;
for (i = 0; i < setCount; i++ ) {
MObject comp = fPolygonComponents[i];
continue;
}
continue;
}
unsigned int j = 0;
for (itMeshPolygon.reset(); !itMeshPolygon.isDone(); itMeshPolygon.next()) {
faces[j++] = itMeshPolygon.index();
}
MObject shaderNode = findShader(set);
continue;
}
continue;
}
&status);
continue;
}
itDG.disablePruningOnFilter();
if (itDG.isDone()) {
}
} else {
MObject textureNode = itDG.thisNode();
}
}
}
}