EgtGeomKernel :
- aggiunta gestione livello di debug tramite Set/GetEGkDebugLev - introduzione della costante SQ_INFINITO = INFINITO * INFINITO - corretta triangolazione per oggetti molto grandi (si usava INFINITO invece di SQ_INFINITO) - corretta scalatura di curve composite (quando si espande si aggiusta la continuità tra le curve componenti).
This commit is contained in:
+2
-2
@@ -131,7 +131,7 @@ GetLinePointTgArc( const Point3d& ptP, const CurveArc& crvArc, const Point3d& pt
|
||||
|
||||
// scelgo la soluzione più vicina al punto di riferimento
|
||||
int nIdOk = 0 ;
|
||||
double dMinSqDist = INFINITO * INFINITO ;
|
||||
double dMinSqDist = SQ_INFINITO ;
|
||||
for ( int i = 0 ; i < nSol ; ++ i) {
|
||||
double dSqDist = SqDist( vBiPnt[i].second, ptNear) ;
|
||||
if ( dSqDist < dMinSqDist) {
|
||||
@@ -182,7 +182,7 @@ CurveLine*
|
||||
GetLinePointTgCompo( const Point3d& ptP, const CurveComposite& crvCompo, const Point3d& ptNear)
|
||||
{
|
||||
// ciclo sulla curva composita
|
||||
double dMinSqDist = INFINITO * INFINITO ;
|
||||
double dMinSqDist = SQ_INFINITO ;
|
||||
PtrOwner<CurveLine> pCrvLine ;
|
||||
for ( const ICurve* pCrv = crvCompo.GetFirstCurve() ;
|
||||
pCrv != nullptr ;
|
||||
|
||||
Reference in New Issue
Block a user