changed &*vert.end() to !vert.empty() -> &vert.back() to comply vs2005 compiler
This commit is contained in:
parent
30fac27e73
commit
cd438cf489
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.12 2006/06/18 20:42:01 cignoni
|
||||||
|
removed wrong fn setting
|
||||||
|
|
||||||
Revision 1.11 2006/06/06 14:35:28 zifnab1974
|
Revision 1.11 2006/06/06 14:35:28 zifnab1974
|
||||||
Changes for compilation on linux AMD64. Some remarks: Linux filenames are case-sensitive. _fileno and _filelength do not exist on linux
|
Changes for compilation on linux AMD64. Some remarks: Linux filenames are case-sensitive. _fileno and _filelength do not exist on linux
|
||||||
|
|
||||||
|
@ -469,11 +472,13 @@ bool RefineE(MESH_TYPE &m, MIDPOINT mid, EDGEPRED ep,bool RefineSelected=false,
|
||||||
|
|
||||||
// m.fn= m.face.size();
|
// m.fn= m.face.size();
|
||||||
|
|
||||||
assert(lastf==m.face.end()); for(fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD()){
|
assert(lastf==m.face.end());
|
||||||
assert((*fi).V(0)>=&*m.vert.begin() && (*fi).V(0)<&*m.vert.end() );
|
assert(!m.vert.empty());
|
||||||
assert((*fi).V(1)>=&*m.vert.begin() && (*fi).V(1)<&*m.vert.end() );
|
for(fi=m.face.begin();fi!=m.face.end();++fi) if(!(*fi).IsD()){
|
||||||
assert((*fi).V(2)>=&*m.vert.begin() && (*fi).V(2)<&*m.vert.end() );
|
assert((*fi).V(0)>=&*m.vert.begin() && (*fi).V(0)<=&m.vert.back() );
|
||||||
}
|
assert((*fi).V(1)>=&*m.vert.begin() && (*fi).V(1)<=&m.vert.back() );
|
||||||
|
assert((*fi).V(2)>=&*m.vert.begin() && (*fi).V(2)<=&m.vert.back() );
|
||||||
|
}
|
||||||
vcg::tri::UpdateTopology<MESH_TYPE>::FaceFace(m);
|
vcg::tri::UpdateTopology<MESH_TYPE>::FaceFace(m);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue