EgtGeomKernel :
- migliorato il tracing dei loop di trim per sup. di bezier.
This commit is contained in:
@@ -2157,7 +2157,16 @@ Tree::FindInters( int& nId, const CurveLine& clTrim, PNTVECTOR& vptInters, bool
|
||||
OnWhichEdge( nId, ptInters, nEdge) ;
|
||||
m_mTree[nId].m_vInters.back().nOut = nEdge ;
|
||||
// se è risultato che sono abbastanza vicino( di EPS_SMALL) ad un vertice allora il punto aggiunto sarà il vertice vero e proprio
|
||||
if ( nEdge == 4)
|
||||
// se è abbastanza vicino ad un lato allora modifico le sue coordinate in modo che sia esattamente sul lato
|
||||
if ( nEdge == 0)
|
||||
ptInters.y = ptTl.y ;
|
||||
else if ( nEdge == 1)
|
||||
ptInters.x = ptTl.x ;
|
||||
else if ( nEdge == 2)
|
||||
ptInters.y = ptBL.y ;
|
||||
else if ( nEdge == 3)
|
||||
ptInters.x = ptTR.x ;
|
||||
else if ( nEdge == 4)
|
||||
ptInters = ptTl ;
|
||||
else if ( nEdge == 5)
|
||||
ptInters = ptBL ;
|
||||
|
||||
Reference in New Issue
Block a user