-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathxsiFile.cpp
executable file
·67 lines (42 loc) · 1.26 KB
/
xsiFile.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Copyright(c) 2005-2006. All Rights Reserved
// By Jean-René Bédard (https://github.com/jrbedard/3d-converter)
#include "StdAfx.h"
#include "Scene.h"
#include "XSIParser.h" // XSI FTK
#include "xsiFile.h"
//#include "../libraries/XSIFTK_3.6.3/collada/XSItoCollada.h"
CXsiFile::CXsiFile(const fs::path& fileName):
m_pScene(NULL)
{
InitializeXsiFtkObjects();
m_fileName = fileName;
}
CXsiFile::~CXsiFile()
{
DestroyXsiFtkObjects();
}
void CXsiFile::InitializeXsiFtkObjects()
{
m_pScene = new CSLScene();
}
void CXsiFile::DestroyXsiFtkObjects()
{
m_pScene->Close();
//delete m_pScene;
m_pScene = NULL;
}
bool CXsiFile::ConvertXsiToCollada(const fs::path& xsiFileName, const fs::path& daeFileName)
{
MSG_INFO("Collada conversion is disabled in this version...");
/*
XMLPlatformUtils::Initialize();
CXSItoCollada* pDaeConverter = new CXSItoCollada();
MSG_INFO("Converting XSI file into a DAE (collada) file...");
pDaeConverter->ReadXSIFile(const_cast<char*>(xsiFileName.string().c_str()));
pDaeConverter->WriteColladaFile(const_cast<char*>(daeFileName.string().c_str()));
pDaeConverter->ReleaseColladaFile();
pDaeConverter->ReleaseXSIFile();
delete pDaeConverter;
*/
return false;
}