EgtGeomKernel :

- semplificata e ottimizzata creazione di superficie trimesh box standard
- miglioramenti sintattici vari.
This commit is contained in:
Dario Sassi
2023-12-29 12:55:24 +01:00
parent 1280037d1d
commit 650540e573
32 changed files with 589 additions and 826 deletions
+4 -4
View File
@@ -256,14 +256,14 @@ IsVertex( PNTULIST& PointList, PNTULIST::const_iterator itCurr)
{
// recupero il punto precedente
PNTULIST::const_iterator itPrev ;
if ( itCurr == PointList.begin())
itPrev = prev( PointList.end(), 2) ;
if ( itCurr == PointList.cbegin())
itPrev = prev( PointList.cend(), 2) ;
else
itPrev = prev( itCurr) ;
// recupero il punto successivo
auto itNext = next( itCurr) ;
if ( itNext == PointList.end())
itNext = next( PointList.begin()) ;
if ( itNext == PointList.cend())
itNext = next( PointList.cbegin()) ;
// se cambia faccia adiacente tra prima e dopo, va bene
if ( itPrev->second != itCurr->second)
return true ;