EgtExecutor 2.4j3 :
- modifiche per export ThreeJS.
This commit is contained in:
+14
-12
@@ -23,7 +23,6 @@
|
||||
#include "/EgtDev/Include/EExImportDxf.h"
|
||||
#include "/EgtDev/Include/EExImportStl.h"
|
||||
#include "/EgtDev/Include/EExImport3MF.h"
|
||||
#include "/EgtDev/Include/EExExportThreeJS.h"
|
||||
#include "/EgtDev/Include/EExImportCnc.h"
|
||||
#include "/EgtDev/Include/EExImportCsf.h"
|
||||
#include "/EgtDev/Include/EExImportPnt.h"
|
||||
@@ -33,6 +32,7 @@
|
||||
#include "/EgtDev/Include/EExExportStl.h"
|
||||
#include "/EgtDev/Include/EExExport3MF.h"
|
||||
#include "/EgtDev/Include/EExExportSvg.h"
|
||||
#include "/EgtDev/Include/EExExportThreeJS.h"
|
||||
#include "/EgtDev/Include/EGnStringUtils.h"
|
||||
#include "/EgtDev/Include/EGnFileUtils.h"
|
||||
#include "/EgtDev/Include/EgtStringConverter.h"
|
||||
@@ -100,6 +100,8 @@ ExeGetFileType( const string& sFilePath)
|
||||
return FT_VRML ;
|
||||
else if ( sFileExt == "C3D")
|
||||
return FT_C3D ;
|
||||
else if ( sFileExt == "HTML")
|
||||
return FT_HTML ;
|
||||
else if ( sFileExt == "TSC")
|
||||
return FT_TSC ;
|
||||
else if ( sFileExt == "LUA")
|
||||
@@ -119,14 +121,6 @@ ExeSetBtlAuxDir( const string& sBtlAuxDir)
|
||||
return MySetBtlAuxDir( sBtlAuxDir) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSetThreeJSAuxDir( const string & sThreeJSAuxDir )
|
||||
{
|
||||
return MySetThreeJSAuxDir( sThreeJSAuxDir) ;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeImportBtl( const string& sFilePath, int nFlag)
|
||||
@@ -567,6 +561,13 @@ ExeExportSvg( int nId, const string& sFilePath, int nFilter)
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeSetThreeJSLibDir( const string& sThreeJSLibDir)
|
||||
{
|
||||
return MySetThreeJSLibDir( sThreeJSLibDir) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeExportThreeJS( int nId, const string& sFilePath, int nFilter)
|
||||
@@ -583,12 +584,13 @@ ExeExportThreeJS( int nId, const string& sFilePath, int nFilter)
|
||||
|
||||
// eseguo l'esportazione
|
||||
bOk = bOk && pExpThreeJS->SetOptions( nFilter) ;
|
||||
bOk = bOk && pExpThreeJS->Export( pGeomDB, nId, sFilePath, pScene, ExeUiUnitsAreMM()) ;
|
||||
bOk = bOk && pExpThreeJS->Export( pGeomDB, nId, pScene, ExeUiUnitsAreMM(), sFilePath) ;
|
||||
// se richiesto, salvo il comando Lua equivalente
|
||||
if ( IsCmdLog()) {
|
||||
string sLua = "EgtExportThreeJS(" + ToString( nId) + ",'" +
|
||||
StringToLuaString( sFilePath) + "')" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
StringToLuaString( sFilePath) + "'," +
|
||||
ToString( nFilter) + ")" +
|
||||
" -- Ok=" + ToString( bOk) ;
|
||||
LOG_INFO( GetCmdLogger(), sLua.c_str()) ;
|
||||
}
|
||||
// restituisco il risultato
|
||||
|
||||
Reference in New Issue
Block a user