EgtGeomKernel 2.5c1 :

- modifiche a CurveComposite::CopyParamRange se start e end coincidono non devo ritornare alcunché.
This commit is contained in:
DarioS
2023-03-06 08:31:34 +01:00
parent f84aefc82d
commit a74949c832
2 changed files with 3 additions and 0 deletions
+3
View File
@@ -1498,6 +1498,9 @@ CurveComposite::CopyParamRange( double dUStart, double dUEnd) const
if ( dUStart < - EPS_PARAM || dUStart > dMaxU + EPS_PARAM ||
dUEnd < - EPS_PARAM || dUEnd > dMaxU + EPS_PARAM)
return nullptr ;
// se i parametri coincidono, non resta alcunchè
if ( abs( dUEnd - dUStart) < EPS_PARAM)
return nullptr ;
// se il parametro start supera quello di end
if ( dUStart > dUEnd - EPS_PARAM) {
// se curva aperta, il trim la cancella completamente quindi non resta alcunchè
BIN
View File
Binary file not shown.