This commit is contained in:
ninja
2025-12-15 23:22:33 +08:00
parent 019570564b
commit 8782765fbc
809 changed files with 118753 additions and 18289 deletions

View File

@@ -1,6 +1,6 @@
/***********************************************************************************************************************
*
* Copyright (c) 2010 - 2022 by Tech Soft 3D, Inc.
* Copyright (c) 2010 - 2025 by Tech Soft 3D, Inc.
* The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., and considered a trade secret
* as defined under civil and criminal statutes. Tech Soft 3D shall pursue its civil and criminal remedies in the event
* of unauthorized use or misappropriation of its trade secrets. Use of this information by anyone other than authorized
@@ -22,6 +22,7 @@ The only input is the file path, optionnal inputs are is the reading mode of the
#define _CRT_SECURE_NO_DEPRECATE 1
#define INITIALIZE_A3D_API
#include <A3DSDKIncludes.h>
#include <hoops_license.h>
#include "../common.hpp"
@@ -120,14 +121,14 @@ int main(A3DInt32 iArgc, A3DUTF8Char** ppcArgv)
if (iArgc > 3) bWithUnload = MY_ATOI(ppcArgv[3]) == 1;
else bWithUnload = true;
if (iArgc > 4) MY_STRCPY(acLogFileName, ppcArgv[4]);
else MY_SPRINTF(acLogFileName, "%s_Log.txt", acDstFileName);
else MY_SPRINTF(acLogFileName, "%s_Log.txt", acSrcFileName);
GetLogFile(acLogFileName); // Initialize log file
//
// ### INITIALIZE HOOPS EXCHANGE
//
A3DSDKHOOPSExchangeLoader sHoopsExchangeLoader(_T(HOOPS_BINARY_DIRECTORY));
A3DSDKHOOPSExchangeLoader sHoopsExchangeLoader(_T(HOOPS_BINARY_DIRECTORY), HOOPS_LICENSE);
CHECK_RET(sHoopsExchangeLoader.m_eSDKStatus);
// Initialize call backs
@@ -140,7 +141,9 @@ int main(A3DInt32 iArgc, A3DUTF8Char** ppcArgv)
A3DImport sImport(acSrcFileName); // see A3DSDKInternalConvert.hxx for import and export detailed parameters
//loading of the CAD file in incremental mode
// Specify reading mode
sImport.m_sLoadData.m_sGeneral.m_eReadGeomTessMode = eMode;
// Specify loading of the input file in incremental mode
sImport.m_sLoadData.m_sIncremental.m_bLoadStructureOnly = true;
A3DStatus iRet = sHoopsExchangeLoader.Import(sImport);
if (iRet != A3D_SUCCESS && iRet != A3D_LOAD_MISSING_COMPONENTS)