diff --git a/VolZmapCreation.cpp b/VolZmapCreation.cpp index 1913825..1421676 100644 --- a/VolZmapCreation.cpp +++ b/VolZmapCreation.cpp @@ -505,7 +505,7 @@ 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) ; + double dCosSmall = sin( EPS_ANG_SMALL * DEGTORAD) ; // Determinazione e ridimensionamento dei dexel interni alla trimesh for ( int i = nInfI ; i < nSupI ; ++ i) { @@ -567,7 +567,7 @@ VolZmap::CreateMapPart( int nMap, int nInfI, int nSupI, int nInfJ, int nSupJ, co } // esco dalla superficie trimesh - else if ( dCos > dCosSmall && bInside) { + else if ( dCos > dCosSmall && bInside) { Point3d ptOut = IntersectionResults[k].ptI ;