EgtMachKernel 2.6c1 :

- migliorato calcolo collegamento tra passate di fresature a step OneWay.
This commit is contained in:
Dario Sassi
2024-03-05 08:57:15 +01:00
parent 839639fcc8
commit db6ae7538f
2 changed files with 5 additions and 4 deletions
BIN
View File
Binary file not shown.
+5 -4
View File
@@ -3073,13 +3073,14 @@ Milling::AddOneWayMilling( const ICurveComposite* pCompo, const Vector3d& vtTool
Point3d ptPer = ptPe + ( dEndElev + dSafeZ) * vtTool ;
// verifica dei punti intermedi
bSafeDirLinkStartEnd = true ;
const int N_STEP = 4 ;
for ( int i = 1 ; i < N_STEP ; ++ i) {
double dCoeff = double( i) / N_STEP ;
int nStep = Clamp( int( Dist( ptPsr, ptPer) / m_TParams.m_dDiam), 4, 16) ;
for ( int i = 1 ; i < nStep ; ++ i) {
double dCoeff = double( i) / nStep ;
Point3d ptPm = Media( ptPsr, ptPer, dCoeff) ;
Vector3d vtCm = Media( vtCs, vtCe, dCoeff) ;
if ( ! vtCm.Normalize())
vtCm = vtCs ;
if ( ! GetPointOutOfRaw( Media( ptPsr, ptPer, dCoeff), vtTool, vtCm, dElev, dSafeZ)) {
if ( ! GetPointOutOfRaw( ptPm, vtTool, vtCm, dElev, dSafeZ)) {
bSafeDirLinkStartEnd = false ;
break ;
}