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
@@ -35,6 +35,7 @@ UUID1 UUID2... Any number of space separated UUIDs of representation items to
#define INITIALIZE_A3D_API
#include <A3DSDKIncludes.h>
#include <hoops_license.h>
#include "../common.hpp"
@@ -144,7 +145,7 @@ struct A3DFlattenVisitor : public A3DTreeVisitor
else
m_vA3DMatrix4x4.push_back(sTransfo);
// Get product occurence identifier ... assuming that there only on rep item by part
// Get product occurrence identifier ... assuming that there only on rep item by part
A3DUTF8Char * pcProductID = nullptr;
if (m_pcProductIdentifier != nullptr)
{
@@ -214,7 +215,11 @@ A3DStatus stGetFlattenRepItemInMmFromModelFile( A3DAsmModelFile * pModelFile,
void PrintUsage()
{
#ifdef _MSC_VER
std::wcout << "Usage:" << std::endl
#else
std::cout << "Usage:" << std::endl
#endif
<< "Collision [INPUT] [OUTPUT] [UUIDs...]" << std::endl
<< "\tINPUT The input CAD file. Default is '" << SAMPLE_DEFAULT_CAD_FILE << "'" << std::endl
<< "\tOUTPUT The output result file. Default is 'CURRENT_DIR/Collision.txt'" << std::endl
@@ -231,7 +236,7 @@ int main(A3DInt32 iArgc, A3DUTF8Char** ppcArgv)
PrintUsage();
// INITIALIZE HOOPS EXCHANGE
A3DSDKHOOPSExchangeLoader sHoopsExchangeLoader(_T(HOOPS_BINARY_DIRECTORY));
A3DSDKHOOPSExchangeLoader sHoopsExchangeLoader(_T(HOOPS_BINARY_DIRECTORY), HOOPS_LICENSE);
CHECK_RET(sHoopsExchangeLoader.m_eSDKStatus);
CHECK_RET(A3DDllSetCallbacksMemory(CheckMalloc, CheckFree));
CHECK_RET(A3DDllSetCallbacksReport(PrintLogMessage, PrintLogWarning, PrintLogError));