Changeset 6dd8d3 for molecuilder/src/boundary.cpp
- Timestamp:
- Apr 9, 2010, 9:55:39 AM (16 years ago)
- Children:
- bd8561
- Parents:
- 6250e5
- File:
-
- 1 edited
-
molecuilder/src/boundary.cpp (modified) (4 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/boundary.cpp
-
Property mode
changed from
100755to100644
r6250e5 r6dd8d3 986 986 // 2. expand from there 987 987 while ((!TesselStruct->OpenLines.empty()) && (OneLoopWithoutSuccessFlag)) { 988 // 2a. fill all newOpenLines988 // 2a. print OpenLines 989 989 Log() << Verbose(1) << "There are " << TesselStruct->OpenLines.size() << " open lines to scan for candidates:" << endl; 990 990 for (CandidateMap::iterator Runner = TesselStruct->OpenLines.begin(); Runner != TesselStruct->OpenLines.end(); Runner++) 991 Log() << Verbose(2) << *(Runner->second) << endl; 992 991 Log() << Verbose(1) << " " << *(Runner->second) << endl; 992 993 // 2b. find best candidate for each OpenLine 993 994 for (CandidateMap::iterator Runner = TesselStruct->OpenLines.begin(); Runner != TesselStruct->OpenLines.end(); Runner++) { 994 995 baseline = Runner->second; … … 1000 1001 } 1001 1002 1002 // 2b. search for smallest ShortestAngle among all candidates 1003 double ShortestAngle = 4.*M_PI; 1003 // 2c. print OpenLines with candidates again 1004 1004 Log() << Verbose(1) << "There are " << TesselStruct->OpenLines.size() << " open lines to scan for the best candidates:" << endl; 1005 1005 for (CandidateMap::iterator Runner = TesselStruct->OpenLines.begin(); Runner != TesselStruct->OpenLines.end(); Runner++) 1006 Log() << Verbose(2) << *(Runner->second) << endl; 1007 1006 Log() << Verbose(1) << " " << *(Runner->second) << endl; 1007 1008 // 2d. search for smallest ShortestAngle among all candidates 1009 double ShortestAngle = 4.*M_PI; 1008 1010 for (CandidateMap::iterator Runner = TesselStruct->OpenLines.begin(); Runner != TesselStruct->OpenLines.end(); Runner++) { 1009 1011 if (Runner->second->ShortestAngle < ShortestAngle) { … … 1013 1015 } 1014 1016 } 1017 // 2e. if we found one, add candidate 1015 1018 if ((ShortestAngle == 4.*M_PI) || (baseline->pointlist.empty())) 1016 1019 OneLoopWithoutSuccessFlag = false; … … 1019 1022 } 1020 1023 1021 // write temporary envelope1024 // 2f. write temporary envelope 1022 1025 if (filename != NULL) { 1023 1026 if ((DoSingleStepOutput && ((TesselStruct->TrianglesOnBoundary.size() % SingleStepWidth == 0)))) { // if we have a new triangle and want to output each new triangle configuration -
Property mode
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
