Pulizia codice simplify facet
This commit is contained in:
@@ -49,13 +49,11 @@ SurfTriMesh::SimplifyFacets( double dMaxEdgeLen)
|
||||
for ( int nL = 0 ; nL < int( LoopVec.size()) ; ++ nL) {
|
||||
// Lista dei punti del loop.
|
||||
PNTULIST& PointList = LoopVec[nL].GetUPointList() ;
|
||||
|
||||
// Mi assicuro che il punto finale non sia all'interno di un segmento.
|
||||
auto itFirst = PointList.begin() ;
|
||||
int nNewStartPos = 0 ;
|
||||
for ( auto it = itFirst ; it != PointList.end() ; ++ it, ++ nNewStartPos) {
|
||||
if ( itFirst->second != it->second) {
|
||||
//ChangePolyLineStart( it->first, LoopVec[nL]) ;
|
||||
{
|
||||
// cancello ultimo punto ( coincide con primo)
|
||||
PointList.pop_back() ;
|
||||
@@ -96,7 +94,6 @@ SurfTriMesh::SimplifyFacets( double dMaxEdgeLen)
|
||||
// Se ho trovato un insieme massimale di punti allineati li ridistribuisco,
|
||||
// altrimenti procedo per includere il punto successivo nell'insieme.
|
||||
if ( ! bAreAlligned || itNextToCurr == PointList.end()) {
|
||||
//ChangePolyLineStart( it->first, LoopVec[nL]) ;
|
||||
{
|
||||
// cancello ultimo punto ( coincide con primo)
|
||||
PointList.pop_back() ;
|
||||
|
||||
Reference in New Issue
Block a user