void ColladaMeshFactory::LoadRoomFromFilePath( const char* aFilePath, std::vector< RevRoom* >& aRefContainer )
{
	FCDocument* colladDoc;

	colladDoc=FCollada::NewTopDocument();
	bool sucess=FCollada::LoadDocumentFromFile(colladDoc, aFilePath );	

	if(sucess==false) return;
	if(colladDoc==NULL) return;

	FCDGeometryLibrary* geometryLibrary=colladDoc->GetGeometryLibrary();

	unsigned int numberOfMeshes=0;
	for (unsigned int i=0; i< geometryLibrary->GetEntityCount(); i++)
	{
		if (geometryLibrary->GetEntity(i)->IsMesh()==true) 
		{
			numberOfMeshes++;
		}
	}


	
	
	BuildHierachyRoom(colladDoc,aRefContainer, colladDoc->GetVisualSceneInstance());

	//aModelNode->myTransformationNode->SetOrientation(temp);

}
bool ColladaMeshFactory::LoadModelWithFilePath( RevModel** aModel, const char* aFilePath )
{

	FCDocument* colladDoc;

	colladDoc=FCollada::NewTopDocument();
	bool sucess=FCollada::LoadDocumentFromFile(colladDoc, aFilePath );	

	if(sucess==false) return(false);
	if(colladDoc==NULL) return(false);

	FCDGeometryLibrary* geometryLibrary=colladDoc->GetGeometryLibrary();

	unsigned int numberOfMeshes=0;
	for (unsigned int i=0; i< geometryLibrary->GetEntityCount(); i++)
	{
		if (geometryLibrary->GetEntity(i)->IsMesh()==true) 
		{
			numberOfMeshes++;
		}
	}

	BuildHierarchy(colladDoc,aModel, colladDoc->GetVisualSceneInstance());


	CU::Matrix44f mayaAdapter,temp;

	mayaAdapter.myMatrix[0][0]=-1;
	(*aModel)->SetBaseModelMatrix( mayaAdapter );
	//aModelNode->myTransformationNode->SetOrientation(temp);
	return(true);

}