Changeset a7b761b for src/tesselation.cpp
- Timestamp:
- May 27, 2010, 10:46:54 AM (15 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:
- 1024cb
- Parents:
- 8f215d (diff), 05a97c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tesselation.cpp
r8f215d ra7b761b 21 21 #include "Plane.hpp" 22 22 #include "Exceptions/LinearDependenceException.hpp" 23 #include "Helpers/Assert.hpp" 24 23 25 #include "Helpers/Assert.hpp" 24 26 … … 358 360 // get ascending order of endpoints 359 361 PointMap OrderMap; 360 for (int i = 0; i < 3; i++) 362 for (int i = 0; i < 3; i++) { 361 363 // for all three lines 362 364 for (int j = 0; j < 2; j++) { // for both endpoints … … 364 366 // and we don't care whether insertion fails 365 367 } 368 } 366 369 // set endpoints 367 370 int Counter = 0; … … 372 375 Counter++; 373 376 } 374 if (Counter < 3) { 375 DoeLog(0) && (eLog() << Verbose(0) << "We have a triangle with only two distinct endpoints!" << endl); 376 performCriticalExit(); 377 } 378 } 379 ; 377 ASSERT(Counter >= 3,"We have a triangle with only two distinct endpoints!"); 378 }; 379 380 380 381 381 /** Destructor of BoundaryTriangleSet. … … 1232 1232 ; 1233 1233 1234 /** PointCloud implementation of GetTerminalPoint.1235 * Uses PointsOnBoundary and STL stuff.1236 */1237 TesselPoint * Tesselation::GetTerminalPoint() const1238 {1239 Info FunctionInfo(__func__);1240 PointMap::const_iterator Runner = PointsOnBoundary.end();1241 Runner--;1242 return (Runner->second->node);1243 }1244 ;1245 1246 1234 /** PointCloud implementation of GoToNext. 1247 1235 * Uses PointsOnBoundary and STL stuff. … … 1255 1243 ; 1256 1244 1257 /** PointCloud implementation of GoToPrevious.1258 * Uses PointsOnBoundary and STL stuff.1259 */1260 void Tesselation::GoToPrevious() const1261 {1262 Info FunctionInfo(__func__);1263 if (InternalPointer != PointsOnBoundary.begin())1264 InternalPointer--;1265 }1266 ;1267 1268 1245 /** PointCloud implementation of GoToFirst. 1269 1246 * Uses PointsOnBoundary and STL stuff. … … 1273 1250 Info FunctionInfo(__func__); 1274 1251 InternalPointer = PointsOnBoundary.begin(); 1275 }1276 ;1277 1278 /** PointCloud implementation of GoToLast.1279 * Uses PointsOnBoundary and STL stuff.1280 */1281 void Tesselation::GoToLast() const1282 {1283 Info FunctionInfo(__func__);1284 InternalPointer = PointsOnBoundary.end();1285 InternalPointer--;1286 1252 } 1287 1253 ; … … 2593 2559 // fill the set of neighbours 2594 2560 TesselPointSet SetOfNeighbours; 2561 2595 2562 SetOfNeighbours.insert(CandidateLine.BaseLine->endpoints[1]->node); 2596 2563 for (TesselPointList::iterator Runner = CandidateLine.pointlist.begin(); Runner != CandidateLine.pointlist.end(); Runner++)
Note:
See TracChangeset
for help on using the changeset viewer.