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:
+5
-8
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user