From 38635cade46aaedbae97f0a9301eda5e664adbd9 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 8 Jul 2024 09:10:22 +0200 Subject: [PATCH] EgtMachKerenl : - in sgrossatura superfici piccola modifica su ENABLE_DEBUG. --- SurfRoughing.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SurfRoughing.cpp b/SurfRoughing.cpp index 39137c7..f4cae5e 100644 --- a/SurfRoughing.cpp +++ b/SurfRoughing.cpp @@ -86,7 +86,7 @@ using namespace std ; static string KEY_SURF_POCK = "SurfPock_" ; static string KEY_SURF_LIMIT = "SurfLimit_" ; -static const bool ENABLE_DEBUG = false ; +#define ENABLE_DEBUG 0 static string _DEBUG_GROUP_TERRACE = "Terraces" ; static string _DEBUG_GROUP_FEED = "Feeds" ; @@ -1763,9 +1763,9 @@ SurfRoughing::AddPocket( const INTINTVECTOR& vPocket, const Vector3d& vtTool, co if ( ! bIsSubStep) ++ nBasicStep ; - if ( ENABLE_DEBUG) { + #if ENABLE_DEBUG DrawLoopsSurf( pSfrPock, true, Color( 1., 1., 1., .1), bIsSubStep, nCurrStep) ; - } + #endif ICRVCOMPOPOVECTOR vpCrvs ; // percorso di svuotatura // se si tratta di uno step base, allora lavoro l'intera superficie @@ -1789,9 +1789,9 @@ SurfRoughing::AddPocket( const INTINTVECTOR& vPocket, const Vector3d& vtTool, co // ciclo sui percorsi for ( int k = 0 ; k < int( vpCrvs.size()) ; ++ k) { - if ( ENABLE_DEBUG) { + #if ENABLE_DEBUG DrawFeed( vpCrvs[k], nCurrStep) ; - } + #endif // controllo se il percorso ha un ingresso presso un lato aperto bool bOutStart = ( vpCrvs[k]->GetCurveCount() > 0 && vpCrvs[k]->GetCurve( 0)->GetTempProp( 0) == 2) ;