diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index cdab733..f7e27c7 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/WaterJetting.cpp b/WaterJetting.cpp index 907edfe..e469ef9 100644 --- a/WaterJetting.cpp +++ b/WaterJetting.cpp @@ -2762,8 +2762,15 @@ WaterJetting::CalcCorrDir( const ICurveComposite* pCompo, double dU) bool WaterJetting::CalcOffset( ICurveComposite* pCompo, double dSignOffs) { + // determino opzioni di offset + int nFlag = ICurve::OFF_EXTEND ; + if ( pCompo->IsClosed()) { + Vector3d vtStart ; pCompo->GetStartDir( vtStart) ; + Vector3d vtEnd ; pCompo->GetEndDir( vtEnd) ; + if ( ! AreSameVectorEpsilon( vtStart, vtEnd, sin( 5 * DEGTORAD))) + nFlag |= ICurve::OFF_FORCE_OPEN ; + } // eseguo offset semplice - int nFlag = ICurve::OFF_EXTEND | ICurve::OFF_FORCE_OPEN ; if ( pCompo->SimpleOffset( dSignOffs, nFlag)) return true ; // se curva piatta, provo con offset avanzato