EgtGeomKernel 1.5f7 :

- aggiunta intersezione tra curve composte (e gestione loro topologia)
- corretto salvataggio entità testo
- aggiunto EPS_SMALL a test su box
- aggiunte funzioni di verifica validità e tipo parametro di curve
- aggiunto comando TSC OUTTEXTICCI.
This commit is contained in:
Dario Sassi
2014-07-01 12:30:16 +00:00
parent f119a5a1be
commit 15f819fe31
30 changed files with 1410 additions and 385 deletions
+5 -8
View File
@@ -78,11 +78,8 @@ Triangulate::Make( const PolyLine& PL, PNTVECTOR& vPt, INTVECTOR& vTr)
return false ;
// se era CW, devo invertire il senso dei triangoli
if ( ! bCCW) {
int nSize = int( vTr.size()) ;
for ( int i = 0 ; i < nSize / 2 ; ++ i)
swap( vTr[i], vTr[nSize-i-1]) ;
}
if ( ! bCCW)
reverse( vTr.begin(), vTr.end()) ;
return true ;
}
@@ -322,11 +319,11 @@ bool
Triangulate::TestPointInTriangle( const Point3d& ptP, const Point3d& ptA, const Point3d& ptB, const Point3d& ptC)
{
// if P is on a vertex is considered outside
if ( AreSamePointNear( ptP, ptA))
if ( AreSamePointApprox( ptP, ptA))
return false ;
if ( AreSamePointNear( ptP, ptB))
if ( AreSamePointApprox( ptP, ptB))
return false ;
if ( AreSamePointNear( ptP, ptC))
if ( AreSamePointApprox( ptP, ptC))
return false ;
// if P is on the right of at least one edge is outside
if ( TriangleIsCCW( ptA, ptP, ptB))