EgtGeomKernel :
- debug.
This commit is contained in:
+9
-8
@@ -1432,18 +1432,15 @@ IntersLineBezierSurfSet( const Point3d& ptLineStart, const Vector3d& vtLineDir,
|
||||
else
|
||||
bCalcInters = bbox.SqDistFromPointXY( r) < EPS_ZERO ;
|
||||
|
||||
if( dMax > EPS_ZERO) {
|
||||
bool bBetter = int( vIntBoxBox.size()) == 0 && bbox.SqDistFromPointXY( r) < EPS_ZERO ;
|
||||
if( bBetter)
|
||||
int a = 0 ;
|
||||
}
|
||||
// verifico che lo spillone faccia interferenza con il box della superficie
|
||||
if ( bCalcInters && dMax > - EPS_ZERO) {
|
||||
// debug
|
||||
++nIntersCalc ;
|
||||
string sOut = " actual inters calc " + ToString(nIntersCalc) + " Griglia" + ToString(nGrid); // debug
|
||||
if( nGrid != 1)
|
||||
sOut += " toolZ: " + ToString( vtN.z, 3) ;
|
||||
string sOut = " actual inters calc " + ToString(nIntersCalc) + " Griglia" + ToString(nGrid) + " toolZ: " + ToString( vtN.z, 3);
|
||||
if( dMax < EPS_SMALL)
|
||||
sOut += " --additional calc" ;
|
||||
LOG_INFO( GetEGkLogger(), sOut.c_str())
|
||||
//debug
|
||||
|
||||
|
||||
// se la linea è parallela all'asse X o Y allora ruoto tutto di 45 gradi rispetto a Z
|
||||
@@ -2223,6 +2220,10 @@ VolZmap::Comp_5AxisMilling( int nGrid, const PNTVECTOR& ptS, const PNTVECTOR& pt
|
||||
bool bForward = true ;
|
||||
bool bAllSameType = false ;
|
||||
vector<IntervalsToSubtract> vIntervalsToSubtr ;
|
||||
//Pi=(,269.846416,156.847955) Vi=(0,0.734659842,0.678435639) Pf=(393.205017,268.283822,158.533523) Vf=(0,0.72787881,0.685705795) Af=(-1,0,0)
|
||||
if( abs(ptS[0].x - 393.205017) < EPS_SMALL && abs(ptS[0].y - 269.846416) < EPS_SMALL && abs(ptS[0].z - 156.847955) < EPS_SMALL)
|
||||
int a = 0 ;
|
||||
|
||||
for ( int i = nStartI ; i <= nEndI ; ++ i) {
|
||||
nLastForwardJ = -1 ;
|
||||
j = nStartJ ;
|
||||
|
||||
Reference in New Issue
Block a user