EgtExecutor 2.6e2 :

- correzione a ExeChangeClosedCurveStartPoint (si usava puntatore a curva anche se nullo).
This commit is contained in:
Dario Sassi
2024-05-06 09:05:01 +02:00
parent 4f7f5d97b2
commit 0b1461984c
2 changed files with 1 additions and 2 deletions
+1 -2
View File
@@ -333,10 +333,9 @@ ExeChangeClosedCurveStartPoint( int nId, const Point3d& ptP, int nRefType)
// porto in locale il punto vicino ad iniziale
Point3d ptPL = GetPointLocal( pGeomDB, ptP, nRefType, frLoc) ;
// recupero la posizione parametrica della proiezione di questo punto sulla curva
DistPointCurve distPC( ptPL, *pCurve) ;
double dPar ;
int nFlag ;
bOk = bOk && distPC.GetParamAtMinDistPoint( 0, dPar, nFlag) ;
bOk = bOk && DistPointCurve( ptPL, *pCurve).GetParamAtMinDistPoint( 0, dPar, nFlag) ;
// cambio il punto iniziale
if ( bOk && pCurve->GetType() == CRV_ARC)
bOk = bOk && GetCurveArc(pCurve)->ChangeStartPoint(dPar) ;