From f3a191dd62b9d6ded864f6c5939bd1d2dcd1ed49 Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Wed, 17 Sep 2025 15:38:44 +0200 Subject: [PATCH] EgtGeomKernel : - modificato valore di soglia per angolo di intersezione tra spillone e trimesh nella costruzione di una Zmap. --- VolZmapCreation.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VolZmapCreation.cpp b/VolZmapCreation.cpp index 07f6f16..1913825 100644 --- a/VolZmapCreation.cpp +++ b/VolZmapCreation.cpp @@ -505,6 +505,8 @@ VolZmap::CreateMapPart( int nMap, int nInfI, int nSupI, int nInfJ, int nSupJ, co nSupJ < 0 || nSupJ > m_nNy[nMap]) return false ; + double dCosSmall = cos( EPS_ANG_SMALL * DEGTORAD) ; + // Determinazione e ridimensionamento dei dexel interni alla trimesh for ( int i = nInfI ; i < nSupI ; ++ i) { for ( int j = nInfJ ; j < nSupJ ; ++ j) { @@ -552,7 +554,7 @@ VolZmap::CreateMapPart( int nMap, int nInfI, int nSupI, int nInfJ, int nSupJ, co double dCos = IntersectionResults[k].dCosDN ; // entro nella superficie trimesh - if ( dCos < - EPS_SMALL) { + if ( dCos < - dCosSmall) { ptIn = IntersectionResults[k].ptI ; @@ -565,7 +567,7 @@ VolZmap::CreateMapPart( int nMap, int nInfI, int nSupI, int nInfJ, int nSupJ, co } // esco dalla superficie trimesh - else if ( dCos > EPS_SMALL && bInside) { + else if ( dCos > dCosSmall && bInside) { Point3d ptOut = IntersectionResults[k].ptI ;