EgtGeomKernel 1.9l4 :
- fabs sostituito da abs - in Zmap razionalizzazione operazioni taglio spilloni - in SurfTriMesh UpdateFaceting senza più chiamate recursive.
This commit is contained in:
+3
-3
@@ -335,7 +335,7 @@ OutTsc::ArcCPA( const Point3d& ptCen, const Point3d& ptMed, double dAngCenDeg)
|
||||
dAngIniDeg -= 0.5 * dAngCenDeg ;
|
||||
|
||||
// verifico non sia praticamente nulla
|
||||
if ( fabs( dRad) < EPS_SMALL || fabs( dAngCenDeg) < EPS_ANG_SMALL)
|
||||
if ( abs( dRad) < EPS_SMALL || abs( dAngCenDeg) < EPS_ANG_SMALL)
|
||||
return true ;
|
||||
|
||||
// incremento indice corrente
|
||||
@@ -378,7 +378,7 @@ bool
|
||||
OutTsc::ArcCurvOrTgOrNone( const CrvPointDiffGeom& oDiffG)
|
||||
{
|
||||
// curvatura
|
||||
if ( oDiffG.nStatus == CrvPointDiffGeom::NCRV && fabs( oDiffG.dCurv) > EPS_ZERO) {
|
||||
if ( oDiffG.nStatus == CrvPointDiffGeom::NCRV && abs( oDiffG.dCurv) > EPS_ZERO) {
|
||||
// tratto di arco
|
||||
Point3d ptCen = oDiffG.ptP + oDiffG.vtN / oDiffG.dCurv ;
|
||||
bool bCCW = ( oDiffG.vtT ^ oDiffG.vtN).z > 0 ;
|
||||
@@ -405,7 +405,7 @@ OutTsc::NormalOrNone( const CrvPointDiffGeom& oDiffG)
|
||||
|
||||
|
||||
// normale
|
||||
if ( oDiffG.nStatus == CrvPointDiffGeom::NCRV && fabs( oDiffG.dCurv) > EPS_ZERO) {
|
||||
if ( oDiffG.nStatus == CrvPointDiffGeom::NCRV && abs( oDiffG.dCurv) > EPS_ZERO) {
|
||||
double dLen = min( NORM_LEN, 1 / oDiffG.dCurv) ;
|
||||
Line2P( oDiffG.ptP - NORM_LEN * oDiffG.vtN, oDiffG.ptP + dLen * oDiffG.vtN) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user