Replace Pos<FaceType> with PosType
This commit is contained in:
parent
a7e2f058f9
commit
becbfab7da
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.19 2005/12/15 11:19:00 corsini
|
||||||
|
Fix operators
|
||||||
|
|
||||||
Revision 1.18 2005/12/15 10:53:16 corsini
|
Revision 1.18 2005/12/15 10:53:16 corsini
|
||||||
Add constructor which takes as input a face and a vertex
|
Add constructor which takes as input a face and a vertex
|
||||||
|
|
||||||
|
@ -147,16 +150,16 @@ public:
|
||||||
VertexType *& V(const int & i){assert( (i>=0) && (i<2)); return f->UberV( (z +i) %3);}
|
VertexType *& V(const int & i){assert( (i>=0) && (i<2)); return f->UberV( (z +i) %3);}
|
||||||
|
|
||||||
/// Operator to compare two half-edge
|
/// Operator to compare two half-edge
|
||||||
inline bool operator == ( Pos<FaceType> const & p ) const {
|
inline bool operator == ( PosType const & p ) const {
|
||||||
return (f==p.f && z==p.z && v==p.v);
|
return (f==p.f && z==p.z && v==p.v);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Operator to compare two half-edge
|
/// Operator to compare two half-edge
|
||||||
inline bool operator != ( Pos<FaceType> const & p ) const {
|
inline bool operator != ( PosType const & p ) const {
|
||||||
return (f!=p.f || z!=p.z || v!=p.v);
|
return (f!=p.f || z!=p.z || v!=p.v);
|
||||||
}
|
}
|
||||||
/// Operator to order half-edge; it's compare at the first the face pointers, then the index of the edge and finally the vertex pointers
|
/// Operator to order half-edge; it's compare at the first the face pointers, then the index of the edge and finally the vertex pointers
|
||||||
inline bool operator <= ( Pos<FaceType> const & p) const {
|
inline bool operator <= ( PosType const & p) const {
|
||||||
return (f!=p.f)?(f<f.p):
|
return (f!=p.f)?(f<f.p):
|
||||||
(z!=p.z)?(z<p.z):
|
(z!=p.z)?(z<p.z):
|
||||||
(v<=p.v);
|
(v<=p.v);
|
||||||
|
@ -298,7 +301,7 @@ public:
|
||||||
int StarSize()
|
int StarSize()
|
||||||
{
|
{
|
||||||
int n=0;
|
int n=0;
|
||||||
Pos<FaceType> ht = *this;
|
PosType ht = *this;
|
||||||
bool bf=false;
|
bool bf=false;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue