+ first version of OBJ exporter

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1056 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2011-07-19 21:41:59 +00:00
parent d29dde1646
commit c58480d608
6 changed files with 442 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "AssimpPCH.h"
#ifndef ASSIMP_BUILD_NO_EXPORT
#ifndef ASSIMP_BUILD_NO_COLLADA_EXPORTER
#include "ColladaExporter.h"
using namespace Assimp;
@@ -69,10 +70,13 @@ void ExportSceneCollada(const char* pFile,IOSystem* pIOSystem, const aiScene* pS
// Constructor for a specific scene to export
ColladaExporter::ColladaExporter( const aiScene* pScene)
{
// make sure that all formatting happens using the standard, C locale and not the user's current locale
mOutput.imbue( std::locale("C") );
mScene = pScene;
// set up strings
endstr = "\n"; // std::endl is too complicated for me to insert here.
endstr = "\n";
// start writing
WriteFile();
@@ -366,4 +370,5 @@ void ColladaExporter::WriteNode( const aiNode* pNode)
}
#endif
#endif