changed the VFIterator ++ to return a facepointer instead of a bool
This commit is contained in:
parent
128100484c
commit
a267ba1a63
|
@ -24,6 +24,10 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.5 2004/06/02 16:25:45 ganovelli
|
||||||
|
changed F(.. to FFp
|
||||||
|
changed Z( to FFi(
|
||||||
|
|
||||||
Revision 1.4 2004/05/10 15:21:47 cignoni
|
Revision 1.4 2004/05/10 15:21:47 cignoni
|
||||||
Added a constructor without vertex pointer
|
Added a constructor without vertex pointer
|
||||||
|
|
||||||
|
@ -315,6 +319,8 @@ public:
|
||||||
|
|
||||||
/// The vertex type
|
/// The vertex type
|
||||||
typedef typename FaceType::VertexType VertexType;
|
typedef typename FaceType::VertexType VertexType;
|
||||||
|
/// The Base face type
|
||||||
|
typedef typename FaceType::BaseFaceType BaseFaceType;
|
||||||
/// The vector type
|
/// The vector type
|
||||||
typedef typename VertexType::CoordType CoordType;
|
typedef typename VertexType::CoordType CoordType;
|
||||||
/// The scalar type
|
/// The scalar type
|
||||||
|
@ -331,10 +337,11 @@ public:
|
||||||
VFIterator(VertexType * const vp){f=vp->VFb();z=vp->VFi();}
|
VFIterator(VertexType * const vp){f=vp->VFb();z=vp->VFi();}
|
||||||
|
|
||||||
bool End() const {return f==0;}
|
bool End() const {return f==0;}
|
||||||
bool operator++() {
|
BaseFaceType *operator++() {
|
||||||
FaceType* t = f;
|
BaseFaceType* t = f;
|
||||||
f = t->VFp(z);
|
f = t->VFp(z);
|
||||||
z = t->VFi(z);
|
z = t->VFi(z);
|
||||||
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue