fundamental changes in order to operate with other collada's viewer

This commit is contained in:
granzuglia 2006-07-27 09:44:25 +00:00
parent 94f8e5f4d5
commit 68324d999c
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include <FCDocument/FCDGeometrySource.h>
#include <FCDocument/FCDGeometryPolygons.h>
#include <FCDocument/FCDSceneNode.h>
#include <FCDocument/FCDGeometryInstance.h>
namespace vcg {
namespace tri {
@ -101,6 +102,11 @@ public:
}
nsource->SetSourceData(nlist,3);
FCDSceneNode* root = doc->AddVisualScene();
root->SetDaeId("vcg-scenenode");
FCDSceneNode* scenenod = root->AddChildNode();
scenenod->AddInstance(geo);
//root->
doc->WriteToFile(FUStringConversion::ToFString(filename));
return 0;
}