Rewrite for all circulators complete.
Conflicts: src/OpenMesh/Core/Mesh/CirculatorsT.hh git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@891 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -257,23 +257,10 @@ TEST_F(OpenMeshTrimeshCirculatorFaceFace, FaceFaceIteratorHandleConversion) {
|
||||
|
||||
|
||||
// Get the face via the handle
|
||||
Mesh::FaceHandle faceHandle1 = mesh_.handle(*face_iter);
|
||||
Mesh::FaceHandle faceHandle1 = *face_iter;
|
||||
const Mesh::Face& face1 = mesh_.face(faceHandle1);
|
||||
|
||||
EXPECT_EQ(1, faceHandle1.idx() ) << "Wrong face handle index when getting from iterator via handle";
|
||||
|
||||
// Get the face via the face itself
|
||||
const Mesh::Face& face = *face_iter;
|
||||
Mesh::FaceHandle fh = mesh_.handle(face);
|
||||
|
||||
|
||||
EXPECT_EQ(1, fh.idx() ) << "Wrong face handle index when getting from iterator via face";
|
||||
|
||||
bool correct = (&face == &face1);
|
||||
|
||||
// Compare the faces
|
||||
EXPECT_TRUE(correct) << "The faces are different although both ways should give the same one";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ TEST_F(OpenMeshTrimeshCirculatorVertexFace, VertexFaceIterWithHolesIncrement) {
|
||||
EXPECT_EQ(1, vf_it.handle().idx() ) << "Index wrong in VertexFaceIter at step 1";
|
||||
EXPECT_TRUE(vf_it) << "Iterator invalid in VertexFaceIter at step 1";
|
||||
++vf_it ;
|
||||
EXPECT_EQ(-1, vf_it.handle().idx() ) << "Index wrong in VertexFaceIter at end";
|
||||
EXPECT_FALSE(vf_it.is_valid() ) << "Index wrong in VertexFaceIter at end";
|
||||
EXPECT_FALSE(vf_it) << "Iterator not invalid in VertexFaceIter at end";
|
||||
EXPECT_TRUE( vf_it == vf_end ) << "End iterator for VertexFaceIter not matching";
|
||||
|
||||
@@ -95,7 +95,7 @@ TEST_F(OpenMeshTrimeshCirculatorVertexFace, VertexFaceIterWithHolesIncrement) {
|
||||
EXPECT_EQ(1, cvf_it.handle().idx() ) << "Index wrong in ConstVertexFaceIter at step one";
|
||||
EXPECT_TRUE(cvf_it) << "Iterator invalid in ConstVertexFaceIter at step one";
|
||||
++cvf_it ;
|
||||
EXPECT_EQ(-1, cvf_it.handle().idx() ) << "Index wrong in ConstVertexFaceIter at end";
|
||||
EXPECT_FALSE(cvf_it.is_valid() ) << "Index wrong in ConstVertexFaceIter at end";
|
||||
EXPECT_FALSE(cvf_it) << "Iterator not invalid in ConstVertexFaceIter at end";
|
||||
EXPECT_TRUE( cvf_it == cvf_end ) << "End iterator for ConstVertexFaceIter not matching";
|
||||
|
||||
@@ -263,8 +263,7 @@ TEST_F(OpenMeshTrimeshCirculatorVertexFace, VertexFaceIterBoundaryIncrement) {
|
||||
EXPECT_EQ(0, vf_it.handle().idx() ) << "Index wrong in VertexFaceIter at step 1";
|
||||
EXPECT_TRUE(vf_it) << "Iterator invalid in VertexFaceIter at step 1";
|
||||
++vf_it ;
|
||||
EXPECT_EQ(-1, vf_it.handle().idx() ) << "Index wrong in VertexFaceIter at step 2";
|
||||
EXPECT_FALSE(vf_it) << "Iterator invalid in VertexFaceIter at step 2";
|
||||
EXPECT_FALSE(vf_it.is_valid()) << "Iterator invalid in VertexFaceIter at step 2";
|
||||
EXPECT_TRUE( vf_it == vf_end ) << "End iterator for VertexFaceIter not matching";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user