Changeset 09d3b8 for molecuilder/src/boundary.cpp
- Timestamp:
- Nov 10, 2009, 8:59:00 PM (16 years ago)
- Children:
- 418117a
- Parents:
- 2fbbc96
- File:
-
- 1 edited
-
molecuilder/src/boundary.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/boundary.cpp
r2fbbc96 r09d3b8 994 994 while ((baseline != TesselStruct->LinesOnBoundary.end()) || (OneLoopWithoutSuccessFlag)) { 995 995 if (baseline->second->triangles.size() == 1) { 996 CheckListOfBaselines(TesselStruct); 996 997 // 3. find next triangle 997 998 TesselationFailFlag = TesselStruct->FindNextSuitableTriangle(*(baseline->second), *(((baseline->second->triangles.begin()))->second), RADIUS, LCList); //the line is there, so there is a triangle, but only one. 998 999 OneLoopWithoutSuccessFlag = OneLoopWithoutSuccessFlag || TesselationFailFlag; 999 1000 if (!TesselationFailFlag) 1000 eLog() << Verbose( 0) << "WARNING:FindNextSuitableTriangle failed." << endl;1001 eLog() << Verbose(2) << "FindNextSuitableTriangle failed." << endl; 1001 1002 1002 1003 // write temporary envelope … … 1006 1007 } 1007 1008 } 1008 baseline = TesselStruct->LinesOnBoundary.end(); 1009 Log() << Verbose(2) << "Baseline set to end." << endl; 1009 if (TesselationFailFlag) { 1010 baseline = TesselStruct->LinesOnBoundary.begin(); 1011 OneLoopWithoutSuccessFlag = false; 1012 Log() << Verbose(2) << "Baseline set to begin." << endl; 1013 } 1010 1014 } else { 1011 1015 //Log() << Verbose(1) << "Line " << *baseline->second << " has " << baseline->second->triangles.size() << " triangles adjacent" << endl; 1012 1016 if (baseline->second->triangles.size() != 2) 1013 Log() << Verbose(1) << "ERROR:TESSELATION FINISHED WITH INVALID TRIANGLE COUNT!" << endl;1017 eLog() << Verbose(1) << "TESSELATION FINISHED WITH INVALID TRIANGLE COUNT!" << endl; 1014 1018 } 1015 1019
Note:
See TracChangeset
for help on using the changeset viewer.
