EgtGeomKernel 2.4g3 :

- in SurfFlatRegion aggiunta funzione che genera un riempimento a zigzag.
- piccola correzione a IsPointInsidePolyLine.
This commit is contained in:
SaraP
2022-07-28 16:25:37 +02:00
parent c45912a2e4
commit de99955e93
4 changed files with 247 additions and 6 deletions
+1 -4
View File
@@ -1331,9 +1331,6 @@ IsPointInsidePolyLine( const Point3d& ptP, const PolyLine& plPoly, double dToler
double dArea ;
if ( ! plPoly.IsClosedAndFlat( plPlane, dArea, 10 * EPS_SMALL))
return false ;
// Impongo l'orientamento CCW
if ( dArea < 0)
plPlane.Invert() ;
// Il punto deve giacere nel piano della polilinea
if ( ! PointInPlaneEpsilon( ptP, plPlane, 10 * EPS_SMALL))
return false ;
@@ -1367,7 +1364,7 @@ IsPointInsidePolyLine( const Point3d& ptP, const PolyLine& plPoly, double dToler
if ( prev( itMinDistEnd) != List.begin())
vtPrevTg = prev( itMinDistEnd)->first - prev( itMinDistEnd, 2)->first ;
else
vtPrevTg = prev( itMinDistEnd)->first - prev( List.rbegin())->first ;
vtPrevTg = prev( itMinDistEnd)->first - next( List.rbegin())->first ;
vtPrevTg.Normalize() ;
// tangente media
vtTang = vtPrevTg + vtCurrTg ;