Changeset 6bd7e0 for src/Tesselation/tesselation.cpp
- Timestamp:
- Jan 2, 2012, 1:34:28 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:
- d78531
- Parents:
- f55ae5
- git-author:
- Frederik Heber <heber@…> (12/19/11 16:46:11)
- git-committer:
- Frederik Heber <heber@…> (01/02/12 13:34:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tesselation/tesselation.cpp
rf55ae5 r6bd7e0 415 415 * \param *out output stream for debugging 416 416 * \param *cloud cluster of points 417 * \param *LC LinkedCell structure to find nearest point quickly417 * \param *LC LinkedCell_deprecated structure to find nearest point quickly 418 418 * \return true - all straddling points insert, false - something went wrong 419 419 */ 420 bool Tesselation::InsertStraddlingPoints(IPointCloud & cloud, const LinkedCell *LC)420 bool Tesselation::InsertStraddlingPoints(IPointCloud & cloud, const LinkedCell_deprecated *LC) 421 421 { 422 422 Info FunctionInfo(__func__); … … 426 426 TriangleList *triangles = NULL; 427 427 bool AddFlag = false; 428 LinkedCell *BoundaryPoints = NULL;428 LinkedCell_deprecated *BoundaryPoints = NULL; 429 429 bool SuccessFlag = true; 430 430 431 431 cloud.GoToFirst(); 432 432 PointCloudAdaptor< Tesselation, MapValueIterator<Tesselation::iterator> > newcloud(this, cloud.GetName()); 433 BoundaryPoints = new LinkedCell (newcloud, 5.);433 BoundaryPoints = new LinkedCell_deprecated(newcloud, 5.); 434 434 while (!cloud.IsEnd()) { // we only have to go once through all points, as boundary can become only bigger 435 435 if (AddFlag) { 436 436 delete (BoundaryPoints); 437 BoundaryPoints = new LinkedCell (newcloud, 5.);437 BoundaryPoints = new LinkedCell_deprecated(newcloud, 5.); 438 438 AddFlag = false; 439 439 } … … 846 846 * \param &CandidateLine contains other degenerated candidates which we have to subtract as well 847 847 * \param RADIUS radius of sphere 848 * \param *LC LinkedCell structure with other atoms848 * \param *LC LinkedCell_deprecated structure with other atoms 849 849 * \return true - candidate triangle is degenerated, false - candidate triangle is not degenerated 850 850 */ 851 bool Tesselation::CheckDegeneracy(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell *LC) const851 bool Tesselation::CheckDegeneracy(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell_deprecated *LC) const 852 852 { 853 853 Info FunctionInfo(__func__); … … 997 997 * \param *out output stream for debugging 998 998 * \param RADIUS radius of virtual rolling sphere 999 * \param *LC LinkedCell structure with neighbouring TesselPoint's999 * \param *LC LinkedCell_deprecated structure with neighbouring TesselPoint's 1000 1000 * \return true - a starting triangle has been created, false - no valid triple of points found 1001 1001 */ 1002 bool Tesselation::FindStartingTriangle(const double RADIUS, const LinkedCell *LC)1002 bool Tesselation::FindStartingTriangle(const double RADIUS, const LinkedCell_deprecated *LC) 1003 1003 { 1004 1004 Info FunctionInfo(__func__); … … 1130 1130 * \param *ThirdNode third point in triangle, not in BoundaryLineSet::endpoints 1131 1131 * \param RADIUS radius of sphere 1132 * \param *LC LinkedCell structure1132 * \param *LC LinkedCell_deprecated structure 1133 1133 * \return true - there is a better candidate (smaller angle than \a ShortestAngle), false - no better TesselPoint candidate found 1134 1134 */ 1135 //bool Tesselation::HasOtherBaselineBetterCandidate(CandidateForTesselation &CandidateLine, const TesselPoint * const ThirdNode, double RADIUS, const LinkedCell * const LC) const1135 //bool Tesselation::HasOtherBaselineBetterCandidate(CandidateForTesselation &CandidateLine, const TesselPoint * const ThirdNode, double RADIUS, const LinkedCell_deprecated * const LC) const 1136 1136 //{ 1137 1137 // Info FunctionInfo(__func__); … … 1270 1270 * @param RADIUS radius of the rolling ball 1271 1271 * @param N number of found triangles 1272 * @param *LC LinkedCell structure with neighbouring points1273 */ 1274 bool Tesselation::FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, const BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC)1272 * @param *LC LinkedCell_deprecated structure with neighbouring points 1273 */ 1274 bool Tesselation::FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, const BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell_deprecated *LC) 1275 1275 { 1276 1276 Info FunctionInfo(__func__); … … 1345 1345 1346 1346 /** Walks through Tesselation::OpenLines() and finds candidates for newly created ones. 1347 * \param *&LCList atoms in LinkedCell list1347 * \param *&LCList atoms in LinkedCell_deprecated list 1348 1348 * \param RADIUS radius of the virtual sphere 1349 1349 * \return true - for all open lines without candidates so far, a candidate has been found, 1350 1350 * false - at least one open line without candidate still 1351 1351 */ 1352 bool Tesselation::FindCandidatesforOpenLines(const double RADIUS, const LinkedCell *&LCList)1352 bool Tesselation::FindCandidatesforOpenLines(const double RADIUS, const LinkedCell_deprecated *&LCList) 1353 1353 { 1354 1354 bool TesselationFailFlag = true; … … 1372 1372 * \param CandidateLine triangle to add 1373 1373 * \param RADIUS Radius of sphere 1374 * \param *LC LinkedCell structure1374 * \param *LC LinkedCell_deprecated structure 1375 1375 * \NOTE we need the copy operator here as the original CandidateForTesselation is removed in 1376 1376 * AddTesselationLine() in AddCandidateTriangle() 1377 1377 */ 1378 void Tesselation::AddCandidatePolygon(CandidateForTesselation CandidateLine, const double RADIUS, const LinkedCell *LC)1378 void Tesselation::AddCandidatePolygon(CandidateForTesselation CandidateLine, const double RADIUS, const LinkedCell_deprecated *LC) 1379 1379 { 1380 1380 Info FunctionInfo(__func__); … … 1468 1468 * \param CandidateLine CanddiateForTesselation structure for the desired BoundaryLine 1469 1469 * \param RADIUS radius of sphere 1470 * \param *LC pointer to LinkedCell structure1471 */ 1472 void Tesselation::AddDegeneratedTriangle(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell *LC)1470 * \param *LC pointer to LinkedCell_deprecated structure 1471 */ 1472 void Tesselation::AddDegeneratedTriangle(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell_deprecated *LC) 1473 1473 { 1474 1474 Info FunctionInfo(__func__); … … 1876 1876 * \param Storage[3] array storing angles and other candidate information 1877 1877 * \param RADIUS radius of virtual sphere 1878 * \param *LC LinkedCell structure with neighbouring points1879 */ 1880 void Tesselation::FindSecondPointForTesselation(TesselPoint* a, Vector Oben, TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell *LC)1878 * \param *LC LinkedCell_deprecated structure with neighbouring points 1879 */ 1880 void Tesselation::FindSecondPointForTesselation(TesselPoint* a, Vector Oben, TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell_deprecated *LC) 1881 1881 { 1882 1882 Info FunctionInfo(__func__); … … 1984 1984 * @param ThirdPoint third point to avoid in search 1985 1985 * @param RADIUS radius of sphere 1986 * @param *LC LinkedCell structure with neighbouring points1987 */ 1988 void Tesselation::FindThirdPointForTesselation(const Vector &NormalVector, const Vector &SearchDirection, const Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class BoundaryPointSet * const ThirdPoint, const double RADIUS, const LinkedCell *LC) const1986 * @param *LC LinkedCell_deprecated structure with neighbouring points 1987 */ 1988 void Tesselation::FindThirdPointForTesselation(const Vector &NormalVector, const Vector &SearchDirection, const Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class BoundaryPointSet * const ThirdPoint, const double RADIUS, const LinkedCell_deprecated *LC) const 1989 1989 { 1990 1990 Info FunctionInfo(__func__); … … 2219 2219 * \return map of BoundaryPointSet of closest points sorted by squared distance or NULL. 2220 2220 */ 2221 DistanceToPointMap * Tesselation::FindClosestBoundaryPointsToVector(const Vector &x, const LinkedCell * LC) const2221 DistanceToPointMap * Tesselation::FindClosestBoundaryPointsToVector(const Vector &x, const LinkedCell_deprecated* LC) const 2222 2222 { 2223 2223 Info FunctionInfo(__func__); … … 2270 2270 * \return closest BoundaryLineSet or NULL in degenerate case. 2271 2271 */ 2272 BoundaryLineSet * Tesselation::FindClosestBoundaryLineToVector(const Vector &x, const LinkedCell * LC) const2272 BoundaryLineSet * Tesselation::FindClosestBoundaryLineToVector(const Vector &x, const LinkedCell_deprecated* LC) const 2273 2273 { 2274 2274 Info FunctionInfo(__func__); … … 2330 2330 * \return BoundaryTriangleSet of nearest triangle or NULL. 2331 2331 */ 2332 TriangleList * Tesselation::FindClosestTrianglesToVector(const Vector &x, const LinkedCell * LC) const2332 TriangleList * Tesselation::FindClosestTrianglesToVector(const Vector &x, const LinkedCell_deprecated* LC) const 2333 2333 { 2334 2334 Info FunctionInfo(__func__); … … 2417 2417 * \return list of BoundaryTriangleSet of nearest triangles or NULL. 2418 2418 */ 2419 class BoundaryTriangleSet * Tesselation::FindClosestTriangleToVector(const Vector &x, const LinkedCell * LC) const2419 class BoundaryTriangleSet * Tesselation::FindClosestTriangleToVector(const Vector &x, const LinkedCell_deprecated* LC) const 2420 2420 { 2421 2421 Info FunctionInfo(__func__); … … 2452 2452 * Basically calls Tesselation::GetDistanceToSurface() and checks the sign of the return value. 2453 2453 * @param point of which to check the position 2454 * @param *LC LinkedCell structure2454 * @param *LC LinkedCell_deprecated structure 2455 2455 * 2456 2456 * @return true if the point is inside the Tesselation structure, false otherwise 2457 2457 */ 2458 bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell * const LC) const2458 bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell_deprecated* const LC) const 2459 2459 { 2460 2460 Info FunctionInfo(__func__); … … 2479 2479 * 2480 2480 * @param point of which to check the position 2481 * @param *LC LinkedCell structure2481 * @param *LC LinkedCell_deprecated structure 2482 2482 * 2483 2483 * @return >0 if outside, ==0 if on surface, <0 if inside … … 2540 2540 * \return distance squared to closest point on surface 2541 2541 */ 2542 double Tesselation::GetDistanceToSurface(const Vector &Point, const LinkedCell * const LC) const2542 double Tesselation::GetDistanceToSurface(const Vector &Point, const LinkedCell_deprecated* const LC) const 2543 2543 { 2544 2544 Info FunctionInfo(__func__); … … 2555 2555 * \return distance squared to closest point on surface 2556 2556 */ 2557 BoundaryTriangleSet * Tesselation::GetClosestTriangleOnSurface(const Vector &Point, const LinkedCell * const LC) const2557 BoundaryTriangleSet * Tesselation::GetClosestTriangleOnSurface(const Vector &Point, const LinkedCell_deprecated* const LC) const 2558 2558 { 2559 2559 Info FunctionInfo(__func__); … … 3545 3545 * \param *LC Linked Cell structure to find nearest point 3546 3546 */ 3547 void Tesselation::AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell *LC)3547 void Tesselation::AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell_deprecated *LC) 3548 3548 { 3549 3549 Info FunctionInfo(__func__);
Note:
See TracChangeset
for help on using the changeset viewer.