Changeset 47d041 for src/Tesselation/BoundaryPolygonSet.cpp
- Timestamp:
- Nov 3, 2011, 7:44:01 PM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 41a467
- Parents:
- 50e4e5
- git-author:
- Frederik Heber <heber@…> (10/27/11 11:53:58)
- git-committer:
- Frederik Heber <heber@…> (11/03/11 19:44:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tesselation/BoundaryPolygonSet.cpp
r50e4e5 r47d041 56 56 Info FunctionInfo(__func__); 57 57 endpoints.clear(); 58 DoLog(1) && (Log() << Verbose(1) << "Erasing polygon Nr." << Nr << " itself." << endl);58 LOG(1, "Erasing polygon Nr." << Nr << " itself."); 59 59 } 60 60 ; … … 77 77 Runner[i]++; 78 78 if (Runner[i] == endpoints.end()) { 79 DoeLog(0) && (eLog() << Verbose(0) << "There are less than three endpoints in the polygon!" << endl);79 ELOG(0, "There are less than three endpoints in the polygon!"); 80 80 performCriticalExit(); 81 81 } … … 97 97 if (TotalNormal->ScalarProduct(OtherVector) > 0.) 98 98 TotalNormal->Scale(-1.); 99 DoLog(1) && (Log() << Verbose(1) << "Normal Vector is " << *TotalNormal << "." << endl);99 LOG(1, "Normal Vector is " << *TotalNormal << "."); 100 100 101 101 return TotalNormal; … … 117 117 } 118 118 center->Scale(1. / (double) counter); 119 DoLog(1) && (Log() << Verbose(1) << "Center is at " << *center << "." << endl);119 LOG(1, "Center is at " << *center << "."); 120 120 } 121 121 … … 150 150 Info FunctionInfo(__func__); 151 151 for (PointSet::const_iterator Runner = endpoints.begin(); Runner != endpoints.end(); Runner++) { 152 DoLog(0) && (Log() << Verbose(0) << "Checking against " << **Runner << endl);152 LOG(0, "Checking against " << **Runner); 153 153 if (point == (*Runner)) { 154 DoLog(0) && (Log() << Verbose(0) << " Contained." << endl);154 LOG(0, " Contained."); 155 155 return true; 156 156 } 157 157 } 158 DoLog(0) && (Log() << Verbose(0) << " Not contained." << endl);158 LOG(0, " Not contained."); 159 159 return false; 160 160 } … … 170 170 for (PointSet::const_iterator Runner = endpoints.begin(); Runner != endpoints.end(); Runner++) 171 171 if (point == (*Runner)->node) { 172 DoLog(0) && (Log() << Verbose(0) << " Contained." << endl);172 LOG(0, " Contained."); 173 173 return true; 174 174 } 175 DoLog(0) && (Log() << Verbose(0) << " Not contained." << endl);175 LOG(0, " Not contained."); 176 176 return false; 177 177 } … … 187 187 Info FunctionInfo(__func__); 188 188 int counter = 0; 189 DoLog(1) && (Log() << Verbose(1) << "Polygon is " << *this << endl);189 LOG(1, "Polygon is " << *this); 190 190 for (int i = 0; i < dim; i++) { 191 DoLog(1) && (Log() << Verbose(1) << " Testing endpoint " << *Points[i] << endl);191 LOG(1, " Testing endpoint " << *Points[i]); 192 192 if (ContainsBoundaryPoint(Points[i])) { 193 193 counter++; … … 210 210 Info FunctionInfo(__func__); 211 211 size_t counter = 0; 212 DoLog(1) && (Log() << Verbose(1) << "Polygon is " << *this << endl);212 LOG(1, "Polygon is " << *this); 213 213 for (PointSet::const_iterator Runner = endpoints.begin(); Runner != endpoints.end(); Runner++) { 214 DoLog(1) && (Log() << Verbose(1) << " Testing endpoint " << **Runner << endl);214 LOG(1, " Testing endpoint " << **Runner); 215 215 if (ContainsBoundaryPoint(*Runner)) 216 216 counter++; … … 246 246 for (LineMap::const_iterator Walker = (*Runner)->lines.begin(); Walker != (*Runner)->lines.end(); Walker++) 247 247 for (TriangleMap::const_iterator Sprinter = (Walker->second)->triangles.begin(); Sprinter != (Walker->second)->triangles.end(); Sprinter++) { 248 //L og() << Verbose(0) << " Testing triangle " << *(Sprinter->second) << endl;248 //LOG(0, " Testing triangle " << *(Sprinter->second)); 249 249 if (ContainsBoundaryTriangle(Sprinter->second)) { 250 250 Tester = triangles->insert(Sprinter->second); 251 251 if (Tester.second) 252 DoLog(0) && (Log() << Verbose(0) << "Adding triangle " << *(Sprinter->second) << endl);252 LOG(0, "Adding triangle " << *(Sprinter->second)); 253 253 } 254 254 } 255 255 256 DoLog(1) && (Log() << Verbose(1) << "The Polygon of " << endpoints.size() << " endpoints has " << triangles->size() << " unique triangles in total." << endl);256 LOG(1, "The Polygon of " << endpoints.size() << " endpoints has " << triangles->size() << " unique triangles in total."); 257 257 return triangles; 258 258 } … … 269 269 if (line == NULL) 270 270 return false; 271 DoLog(1) && (Log() << Verbose(1) << "Filling polygon from line " << *line << endl);271 LOG(1, "Filling polygon from line " << *line); 272 272 for (TriangleMap::const_iterator Runner = line->triangles.begin(); Runner != line->triangles.end(); Runner++) { 273 273 for (int i = 0; i < 3; i++) { 274 274 Tester = endpoints.insert((Runner->second)->endpoints[i]); 275 275 if (Tester.second) 276 DoLog(1) && (Log() << Verbose(1) << " Inserting endpoint " << *((Runner->second)->endpoints[i]) << endl);276 LOG(1, " Inserting endpoint " << *((Runner->second)->endpoints[i])); 277 277 } 278 278 }
Note:
See TracChangeset
for help on using the changeset viewer.