Changeset 2dff2d for molecuilder/src/tesselationhelpers.cpp
- Timestamp:
- Nov 28, 2009, 3:07:42 PM (16 years ago)
- Children:
- 1db34af
- Parents:
- f7490d
- git-author:
- Frederik Heber <heber@…> (11/28/09 14:58:40)
- git-committer:
- Frederik Heber <heber@…> (11/28/09 15:07:42)
- File:
-
- 1 edited
-
molecuilder/src/tesselationhelpers.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/tesselationhelpers.cpp
rf7490d r2dff2d 956 956 } 957 957 958 Log() << Verbose(0) << "Polygon is " << *P << endl; 958 959 // create each pair, get the endpoints and check whether *P is contained. 959 960 int counter = 0; … … 969 970 for (int i=0;i<3;i++) 970 971 PairTrianglenodes.endpoints.insert((*PairWalker)->endpoints[i]); 971 Log() << Verbose(1) << "Current pair of triangles: " << PairTrianglenodes << "." << endl; 972 // now check 973 if (PairTrianglenodes.ContainsPresentTupel(P)) { 974 counter++; 975 Log() << Verbose(1) << "Matches with " << *P << endl; 972 const int size = PairTrianglenodes.endpoints.size(); 973 if (size == 4) { 974 Log() << Verbose(0) << " Current pair of triangles: " << **Walker << "," << **PairWalker << " with " << size << " distinct endpoints:" << PairTrianglenodes << endl; 975 // now check 976 if (PairTrianglenodes.ContainsPresentTupel(P)) { 977 counter++; 978 Log() << Verbose(0) << " ACCEPT: Matches with " << *P << endl; 979 } else { 980 Log() << Verbose(0) << " REJECT: No match with " << *P << endl; 981 } 976 982 } else { 977 Log() << Verbose( 1) << "No match with " << *P<< endl;983 Log() << Verbose(0) << " REJECT: Less than four endpoints." << endl; 978 984 } 979 985 } 980 986 } 981 PairTrianglenodes.endpoints.clear();987 Trianglenodes.clear(); 982 988 } 983 989 return counter; … … 1010 1016 { 1011 1017 Info FunctionInfo(__func__); 1012 for(PointSet::iterator Runner = P1->endpoints.begin(); Runner != P1->endpoints.end(); Runner++) { 1013 P1->endpoints.insert((*Runner)); 1018 pair <PointSet::iterator, bool> Tester; 1019 for(PointSet::iterator Runner = P2->endpoints.begin(); Runner != P2->endpoints.end(); Runner++) { 1020 Tester = P1->endpoints.insert((*Runner)); 1021 if (Tester.second) 1022 Log() << Verbose(0) << "Inserting endpoint " << *(*Runner) << " into first polygon." << endl; 1014 1023 } 1015 1024 P2->endpoints.clear();
Note:
See TracChangeset
for help on using the changeset viewer.
