EgtGeomKernel :

- modificato valore di soglia per angolo di intersezione tra spillone e trimesh nella costruzione di una Zmap.
This commit is contained in:
Daniele Bariletti
2025-09-17 15:38:44 +02:00
parent cb0a5092fb
commit f3a191dd62
+4 -2
View File
@@ -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 ;