Changeset d4c9ae
- Timestamp:
- May 20, 2010, 3:51:14 PM (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:
- 93dfc7b
- Parents:
- 5702280
- Location:
- src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Plane.cpp
r5702280 rd4c9ae 91 91 offset = normalVector->ScalarProduct(_offsetVector); 92 92 } 93 94 /** 95 * copy constructor 96 */ 97 Plane::Plane(const Plane& plane) : 98 normalVector(new Vector(*plane.normalVector)), 99 offset(plane.offset) 100 {} 101 93 102 94 103 Plane::~Plane() -
src/Plane.hpp
r5702280 rd4c9ae 26 26 Plane(const Vector &_normalVector, double _offset) throw(ZeroVectorException); 27 27 Plane(const Vector &_normalVector, const Vector &_offsetVector) throw(ZeroVectorException); 28 Plane(const Plane& plane); 28 29 virtual ~Plane(); 29 30 -
src/molecule_fragmentation.cpp
r5702280 rd4c9ae 593 593 MolecularWalker = MolecularWalker->next; 594 594 // fill the bond structure of the individually stored subgraphs 595 MolecularWalker->FillBondStructureFromReference(this, FragmentCounter, ListOfLocalAtoms, false); // we want to keep the created ListOfLocalAtoms595 MolecularWalker->FillBondStructureFromReference(this, FragmentCounter, ListOfLocalAtoms, false); // we want to keep the created ListOfLocalAtoms 596 596 DoLog(0) && (Log() << Verbose(0) << "Analysing the cycles of subgraph " << MolecularWalker->Leaf << " with nr. " << FragmentCounter << "." << endl); 597 597 LocalBackEdgeStack = new StackClass<bond *> (MolecularWalker->Leaf->BondCount); … … 1672 1672 while (flag) { 1673 1673 // remove bonds that are beyond bonddistance 1674 for(int i=NDIM;i--;) 1675 Translationvector[i] = 0.; 1674 Translationvector.Zero(); 1676 1675 // scan all bonds 1677 1676 Binder = first; … … 1726 1725 //delete(CompStack); 1727 1726 } 1728 1729 1727 // free allocated space from ReturnFullMatrixforSymmetric() 1730 1728 delete(AtomStack); -
src/tesselation.cpp
r5702280 rd4c9ae 21 21 #include "Plane.hpp" 22 22 #include "Exceptions/LinearDependenceException.hpp" 23 #include "Helpers/Assert.hpp" 23 24 24 25 class molecule; … … 680 681 center->Scale(1. / 3.); 681 682 DoLog(1) && (Log() << Verbose(1) << "INFO: Center is at " << *center << "." << endl); 683 } 684 685 /** 686 * gets the Plane defined by the three triangle Basepoints 687 */ 688 Plane BoundaryTriangleSet::getPlane() const{ 689 ASSERT(endpoints[0] && endpoints[1] && endpoints[2], "Triangle not fully defined"); 690 691 return Plane(*endpoints[0]->node->node, 692 *endpoints[1]->node->node, 693 *endpoints[2]->node->node); 682 694 } 683 695 -
src/tesselation.hpp
r5702280 rd4c9ae 38 38 class PointCloud; 39 39 class Tesselation; 40 class Plane; 40 41 41 42 /********************************************** definitions *********************************/ … … 165 166 bool IsPresentTupel(const BoundaryPointSet * const Points[3]) const; 166 167 bool IsPresentTupel(const BoundaryTriangleSet * const T) const; 168 169 Plane getPlane() const; 167 170 168 171 class BoundaryPointSet *endpoints[3]; -
src/tesselationhelpers.cpp
r5702280 rd4c9ae 16 16 #include "vector_ops.hpp" 17 17 #include "verbose.hpp" 18 #include "Plane.hpp" 18 19 19 20 double DetGet(gsl_matrix * const A, const int inPlace) … … 687 688 return -1; 688 689 } 689 distance = x->DistanceTo Plane(triangle->NormalVector, *triangle->endpoints[0]->node->node);690 distance = x->DistanceToSpace(triangle->getPlane()); 690 691 return distance; 691 692 }; -
src/vector.cpp
r5702280 rd4c9ae 266 266 * \return distance to plane 267 267 */ 268 double Vector::DistanceTo Plane(const Vector &PlaneNormal, const Vector &PlaneOffset) const269 { 270 return GetDistanceVectorToPlane(PlaneNormal,PlaneOffset).Norm();268 double Vector::DistanceToSpace(const Space &space) const 269 { 270 return space.distance(*this); 271 271 }; 272 272 -
src/vector.hpp
r5702280 rd4c9ae 40 40 double DistanceSquared(const Vector &y) const; 41 41 Vector GetDistanceVectorToPlane(const Vector &PlaneNormal, const Vector &PlaneOffset) const; 42 double DistanceTo Plane(const Vector &PlaneNormal, const Vector &PlaneOffset) const;42 double DistanceToSpace(const Space& space) const; 43 43 double PeriodicDistance(const Vector &y, const double * const cell_size) const; 44 44 double PeriodicDistanceSquared(const Vector &y, const double * const cell_size) const;
Note:
See TracChangeset
for help on using the changeset viewer.