#include <QtCore/QObject>
#include "MeshBuilder.h"
MB_PLUGIN(
"MeshBuilder",
"Build Simple Meshes",
"Autodesk",
"http://www.mudbox3d.com", Initializer );
void Initializer(void)
{
}
void Execute(void)
{
Mesh *pTriPlane = BuildTrianglePlane();
Geometry *pGeoPlane = CreateInstance<Geometry>();
pGeoPlane->
SetName(
"TriPlane Geometry");
if (
SubdivisionLevel *pTriPlaneSL = dynamic_cast<SubdivisionLevel *>(pTriPlane))
{
}
Kernel()->Scene()->AddGeometry(pGeoPlane);
Mesh *pQuadCube = BuildQuadCube();
pGeoCube->
SetName(
"QuadCube Geometry");
Kernel()->Scene()->AddGeometry(pGeoCube);
Kernel()->Scene()->SetActiveGeometry(pGeoCube);
Kernel()->ViewPort()->Redraw();
Kernel()->Interface()->RefreshUI();
}
Mesh *BuildTrianglePlane()
{
return pMesh;
}
{
unsigned int aFaceIndices[] = {
0, 1, 5, 4, 2, 3, 7, 6, 1, 2, 6, 5, 3, 0, 4, 7, 4, 5, 6, 7, 1, 0, 3, 2
};
unsigned int iFIdx = 0;
for (unsigned int iF = 0; iF < 6; ++iF)
{
}
return pMesh;
}