From 1655127475f6499d7e150521cc03de5d0f6355c8 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 15 Nov 2025 10:59:29 +0100 Subject: [PATCH] Include : - aggiunte costanti - piccola miglioria in funzione inline. --- EGkPolyLine.h | 4 ++-- EMkMachiningGeoConst.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/EGkPolyLine.h b/EGkPolyLine.h index 75406a1..c42c0c7 100644 --- a/EGkPolyLine.h +++ b/EGkPolyLine.h @@ -124,8 +124,8 @@ class PolyLine { return (( nPropInd >= 0 && nPropInd < 2) ? m_nTempProp[nPropInd] : 0) ; } EGK_EXPORT bool FromPointVector( const PNTVECTOR& vPnt) { Clear() ; - for( int i = 0 ; i < int( vPnt.size()) ; ++i) - { AddUPoint( i, vPnt[i]) ; } + for ( int i = 0 ; i < std::ssize( vPnt) ; ++i) + AddUPoint( i, vPnt[i]) ; return GetPointNbr() > 0 ; } private : diff --git a/EMkMachiningGeoConst.h b/EMkMachiningGeoConst.h index 1ef57fd..9439ca3 100644 --- a/EMkMachiningGeoConst.h +++ b/EMkMachiningGeoConst.h @@ -116,6 +116,9 @@ static std::string KEY_MAXMAX = "MAXMAX" ; static std::string KEY_DRACEX = "DRACEX" ; // Chiave info in sottogruppo di testa per abilitarne visualizzazione in Preview (0/1 default) static std::string KEY_PREVIEWSHOW = "PreviewShow" ; +// Chiavi info in entità di CL e DBL per riferimenti reciproci +static std::string KEY_DBL_MAIN = "Main" ; +static std::string KEY_CL_DOUBLE = "Double" ; //----------------- Costanti posizione per preview utensile in lavorazione ------ enum MchToolShow { MCH_TPM_CURR = 0,