EgtGeomkernel :
- confronto tempi.
This commit is contained in:
+14
-2
@@ -1688,6 +1688,13 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
|
||||
vvPtCtrl.emplace_back( PNTVECTOR( { vPntTopStartFront.back(), vPntTopStartFront.front(), vPntTopEndFront.back(), vPntTopEndFront.front() })) ;
|
||||
}
|
||||
else {
|
||||
|
||||
static PerformanceCounter Counter ;
|
||||
{
|
||||
Counter.Start() ;
|
||||
}
|
||||
|
||||
|
||||
// costruisco tutti gli archi subito
|
||||
// archi inferiori front
|
||||
CurveArc cArcTipStartF1, cArcTipEndF1, cArcTipStartF2, cArcTipEndF2 ;
|
||||
@@ -1730,8 +1737,6 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
|
||||
PtrOwner<CurveBezier> cBezTopStartB2(GetBasicCurveBezier(ArcToBezierCurve(&cArcTopStartB2, nDegU, bRat)));
|
||||
PtrOwner<CurveBezier> cBezTopEndB2(GetBasicCurveBezier(ArcToBezierCurve(&cArcTopEndB2, nDegU, bRat)));
|
||||
|
||||
|
||||
|
||||
if ( n5AxisType == Move5Axis::NO_BASE_INTERS || n5AxisType == Move5Axis::ACROSS) {
|
||||
// inferiori
|
||||
CurveArc cArcTipStart1, cArcTipEnd1, cArcTipStart2, cArcTipEnd2 ;
|
||||
@@ -1903,6 +1908,13 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
|
||||
PNTVECTOR vPntTopEndBack2 = cBezTopEndB2->GetAllControlPoints() ;
|
||||
vvPtCtrl.back().insert( vvPtCtrl.back().end(), vPntTopEndBack2.rbegin(), vPntTopEndBack2.rend()) ;
|
||||
}
|
||||
|
||||
{
|
||||
static double dCreationTime = 0;
|
||||
dCreationTime += Counter.Stop();
|
||||
string sOut = "bezier_creation = " + ToString( dCreationTime, 3) ;
|
||||
LOG_INFO( GetEGkLogger(), sOut.c_str())
|
||||
}
|
||||
}
|
||||
|
||||
//debug
|
||||
|
||||
Reference in New Issue
Block a user