EgtExecutor 1.9l1 :

- correzione e migliorie a ExeSurfTmSurfTmInters.
This commit is contained in:
Dario Sassi
2018-12-10 07:52:36 +00:00
parent ec6b2a0e7a
commit 7462e7c67d
2 changed files with 3 additions and 2 deletions
+3 -2
View File
@@ -437,7 +437,7 @@ MySurfTmSurfTmInters( int nId1, int nId2, int nDestGrpId,
for ( size_t i = 0 ; i < vPnt.size() ; ++ i) {
// creo il punto
PtrOwner<IGeoPoint3d> pGeoPnt( CreateGeoPoint3d()) ;
if ( ! IsNull( pGeoPnt))
if ( IsNull( pGeoPnt))
return GDB_ID_NULL ;
// setto il punto
pGeoPnt->Set( vPnt[i]) ;
@@ -482,7 +482,8 @@ MySurfTmSurfTmInters( int nId1, int nId2, int nDestGrpId,
if ( bInvert)
pLine->Invert() ;
// lo accodo alla composita
if ( ! pCrvCompo->AddCurve( Release( pLine), true, dToler))
if ( ! pCrvCompo->AddCurve( Release( pLine), true, 1.1 * dToler) &&
! AreSamePointApprox( ptNear, vBpt[nInd].second))
return GDB_ID_NULL ;
// aggiorno il prossimo near
ptNear = vBpt[nInd].second ;
BIN
View File
Binary file not shown.