diff --git a/VolZmapVolume.cpp b/VolZmapVolume.cpp index 9526c93..31d6d5f 100644 --- a/VolZmapVolume.cpp +++ b/VolZmapVolume.cpp @@ -1041,7 +1041,7 @@ VolZmap::MillingStep( int nCurrTool, return MillingStep( nCurrTool, ptPs, vtDs, Vector3d(), ptPe, vtDe, Vector3d()) ; } -static double dTotCount = 0. ; +//static double dTotCount = 0. ; //---------------------------------------------------------------------------- bool @@ -2163,14 +2163,10 @@ VolZmap::Comp_5AxisMilling( int nGrid, const PNTVECTOR& ptS, const PNTVECTOR& pt int nPos = j * m_nNx[nGrid] + i ; vector& vDexel = m_Values[nGrid][nPos] ; vector vInterv, vEmpty ; - for ( int k = 0 ; k < int(vDexel.size()) ; ++k ) { + for ( int k = 0 ; k < int(vDexel.size()) ; ++k ) vInterv.emplace_back( vDexel[k].dMin, vDexel[k].dMax) ; - } - double dMin = 0 , dMax = 0 ; if ( vDexel.size() != 0) { - dMin = vDexel.front().dMin ; - dMax = vDexel.back().dMax ; IntersLineBezierSurfSet( r, q, vSurfBez, vInters, vSurfInters, vtLs[0], vInterv) ; if ( vInters.size() > 2) { SortGroupInters( vInters, vStartEnds, Z_AX) ;