fix: use broader component name matching for debug logging
This commit is contained in:
parent
b4b673ab8e
commit
8e2d78c304
@ -2925,8 +2925,8 @@ CreoManager::ProjectionAnalysisData CreoManager::PerformMultiDirectionalProjecti
|
||||
// If blocked by ray test, this direction votes 0 (no increment)
|
||||
|
||||
// Debug output for specific component
|
||||
if (targetComponent->name.find("12v4000g03_herhang") != std::string::npos ||
|
||||
targetComponent->name.find("12V4000G03_HERHANG") != std::string::npos) {
|
||||
if (targetComponent->name.find("12v4000g03") != std::string::npos ||
|
||||
targetComponent->name.find("12V4000G03") != std::string::npos) {
|
||||
static bool firstTime = true;
|
||||
if (firstTime) {
|
||||
try {
|
||||
@ -2937,7 +2937,7 @@ CreoManager::ProjectionAnalysisData CreoManager::PerformMultiDirectionalProjecti
|
||||
std::string logPath = workingDir + "\\12v4000g03_analysis.txt";
|
||||
std::ofstream logFile(logPath, std::ios::out | std::ios::trunc);
|
||||
if (logFile.is_open()) {
|
||||
logFile << "=== 12V4000G03_HERHANG.prt Visibility Analysis ===" << std::endl;
|
||||
logFile << "=== 12V4000G03 Component Visibility Analysis ===" << std::endl;
|
||||
logFile << "Component Name: " << targetComponent->name << std::endl;
|
||||
logFile << "Feature ID: " << targetComponent->featureId << std::endl;
|
||||
logFile << "\nBounding Box:" << std::endl;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user