fix bug end iterator++
This commit is contained in:
parent
40e4a353bd
commit
baad6db4b9
|
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.25 2005/11/10 15:37:58 cignoni
|
||||||
|
Removed flags clearing (now it should be in the constructor of face and vertex)
|
||||||
|
|
||||||
Revision 1.24 2005/10/13 09:32:11 cignoni
|
Revision 1.24 2005/10/13 09:32:11 cignoni
|
||||||
Re-inserted the cFFp and cVFp access. If only the const version of the member function exists, the compiler will call it
|
Re-inserted the cFFp and cVFp access. If only the const version of the member function exists, the compiler will call it
|
||||||
when a non-const object invokes that function
|
when a non-const object invokes that function
|
||||||
|
|
@ -164,7 +167,7 @@ public:
|
||||||
*/
|
*/
|
||||||
static VertexIterator AddVertices(MeshType &m,int n, PointerUpdater<VertexPointer> &pu)
|
static VertexIterator AddVertices(MeshType &m,int n, PointerUpdater<VertexPointer> &pu)
|
||||||
{
|
{
|
||||||
VertexIterator last=m.vert.end();
|
VertexIterator last;
|
||||||
pu.Clear();
|
pu.Clear();
|
||||||
if(m.vert.empty()) pu.oldBase=0; // if the vector is empty we cannot find the last valid element
|
if(m.vert.empty()) pu.oldBase=0; // if the vector is empty we cannot find the last valid element
|
||||||
else pu.oldBase=&*m.vert.begin();
|
else pu.oldBase=&*m.vert.begin();
|
||||||
|
|
@ -190,11 +193,18 @@ static VertexIterator AddVertices(MeshType &m,int n, PointerUpdater<VertexPointe
|
||||||
}
|
}
|
||||||
|
|
||||||
// e poiche' lo spazio e' cambiato si ricalcola anche last da zero
|
// e poiche' lo spazio e' cambiato si ricalcola anche last da zero
|
||||||
unsigned int siz=(unsigned int) m.vert.size()-n;
|
|
||||||
|
|
||||||
|
}
|
||||||
|
unsigned int siz=(unsigned int)m.vert.size()-n;
|
||||||
|
//if(last!=(VertexIterator)0)
|
||||||
|
//{
|
||||||
last = m.vert.begin();
|
last = m.vert.begin();
|
||||||
advance(last,siz);
|
advance(last,siz);
|
||||||
}
|
//}
|
||||||
|
//else last=m.vert.begin();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return last;// deve restituire l'iteratore alla prima faccia aggiunta;
|
return last;// deve restituire l'iteratore alla prima faccia aggiunta;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue