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:
Dario Sassi
2018-06-22 09:47:00 +00:00
parent e663cafc2b
commit ca400dd8d4
5 changed files with 286 additions and 63 deletions
+3 -3
View File
@@ -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 ;