EgtMachKernel :
- aggiunta gestione regioni come geometria sorgente in Milling, Pocketing e Chiseling - corretto controllo calcolo angoli con rinvio da sotto.
This commit is contained in:
+3
-3
@@ -837,9 +837,9 @@ Machine::GetMyAngles( const Vector3d& vtDirT, const Vector3d& vtDirA,
|
||||
double dCompTOrtAxR1 = ( ( dTemp > EPS_ZERO) ? sqrt( dTemp) : 0) ;
|
||||
dTemp = 1 - dCompHSuAxR1 * dCompHSuAxR1 ;
|
||||
double dCompHOrtAxR1 = ( ( dTemp > EPS_ZERO) ? sqrt( dTemp) : 0) ;
|
||||
// verifica ( max delta angolare < 0.002 deg)
|
||||
const double SIN_ANG_ERROR = sin( 0.002 * DEGTORAD) ;
|
||||
if ( fabs( dCompTOrtAxR1 * dCompHSuAxR1 - dCompHOrtAxR1 * dCompTSuAxR1) < SIN_ANG_ERROR) {
|
||||
// verifica ( controllo verso e max delta angolare < 0.002 deg)
|
||||
if ( fabs( dCompTSuAxR1 - dCompHSuAxR1) < EPS_SMALL &&
|
||||
fabs( dCompTOrtAxR1 * dCompHSuAxR1 - dCompHOrtAxR1 * dCompTSuAxR1) < 2 * SIN_EPS_ANG_SMALL) {
|
||||
nStat = 1 ;
|
||||
vtDirH1 = vtDirHn ;
|
||||
vtDirI1 = vtDirIn ;
|
||||
|
||||
Reference in New Issue
Block a user