Changeset e138de for src/tesselation.hpp
- Timestamp:
- Nov 4, 2009, 7:56:04 PM (16 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, Candidate_v1.7.0, Candidate_v1.7.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:
- 1614174, e5ad5c
- Parents:
- 7326b2
- File:
-
- 1 edited
-
src/tesselation.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tesselation.hpp
r7326b2 re138de 108 108 bool IsConnectedTo(class BoundaryLineSet *line); 109 109 bool ContainsBoundaryPoint(class BoundaryPointSet *point); 110 bool CheckConvexityCriterion( ofstream *out);110 bool CheckConvexityCriterion(); 111 111 class BoundaryPointSet *GetOtherEndpoint(class BoundaryPointSet *); 112 112 … … 128 128 void GetNormalVector(Vector &NormalVector); 129 129 void GetCenter(Vector *center); 130 bool GetIntersectionInsideTriangle( ofstream *out,Vector *MolCenter, Vector *x, Vector *Intersection);130 bool GetIntersectionInsideTriangle(Vector *MolCenter, Vector *x, Vector *Intersection); 131 131 bool ContainsBoundaryLine(class BoundaryLineSet *line); 132 132 bool ContainsBoundaryPoint(class BoundaryPointSet *point); … … 170 170 virtual ~PointCloud(); 171 171 172 virtual Vector *GetCenter( ofstream *out) const { return NULL; };172 virtual Vector *GetCenter() const { return NULL; }; 173 173 virtual TesselPoint *GetPoint() const { return NULL; }; 174 174 virtual TesselPoint *GetTerminalPoint() const { return NULL; }; … … 215 215 216 216 // concave envelope 217 void FindStartingTriangle( ofstream *out,const double RADIUS, const LinkedCell *LC);217 void FindStartingTriangle(const double RADIUS, const LinkedCell *LC); 218 218 void FindSecondPointForTesselation(class TesselPoint* a, Vector Oben, class TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell *LC); 219 219 void FindThirdPointForTesselation(Vector NormalVector, Vector SearchDirection, Vector OldSphereCenter, class BoundaryLineSet *BaseLine, class TesselPoint *ThirdNode, CandidateList* &candidates, double *ShortestAngle, const double RADIUS, const LinkedCell *LC); 220 bool FindNextSuitableTriangle( ofstream *out,BoundaryLineSet &Line, BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC);221 int CheckPresenceOfTriangle( ofstream *out,class TesselPoint *Candidates[3]);222 class BoundaryTriangleSet * GetPresentTriangle( ofstream *out,TesselPoint *Candidates[3]);220 bool FindNextSuitableTriangle(BoundaryLineSet &Line, BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC); 221 int CheckPresenceOfTriangle(class TesselPoint *Candidates[3]); 222 class BoundaryTriangleSet * GetPresentTriangle(TesselPoint *Candidates[3]); 223 223 224 224 // convex envelope 225 void TesselateOnBoundary( ofstream *out,const PointCloud * const cloud);226 void GuessStartingTriangle( ofstream *out);227 bool InsertStraddlingPoints( ofstream *out,const PointCloud *cloud, const LinkedCell *LC);228 double RemovePointFromTesselatedSurface( ofstream *out,class BoundaryPointSet *point);229 class BoundaryLineSet * FlipBaseline( ofstream *out,class BoundaryLineSet *Base);230 double PickFarthestofTwoBaselines( ofstream *out,class BoundaryLineSet *Base);231 class BoundaryPointSet *IsConvexRectangle( ofstream *out,class BoundaryLineSet *Base);225 void TesselateOnBoundary(const PointCloud * const cloud); 226 void GuessStartingTriangle(); 227 bool InsertStraddlingPoints(const PointCloud *cloud, const LinkedCell *LC); 228 double RemovePointFromTesselatedSurface(class BoundaryPointSet *point); 229 class BoundaryLineSet * FlipBaseline(class BoundaryLineSet *Base); 230 double PickFarthestofTwoBaselines(class BoundaryLineSet *Base); 231 class BoundaryPointSet *IsConvexRectangle(class BoundaryLineSet *Base); 232 232 map<int, int> * FindAllDegeneratedTriangles(); 233 233 map<int, int> * FindAllDegeneratedLines(); 234 234 void RemoveDegeneratedTriangles(); 235 void AddBoundaryPointByDegeneratedTriangle( ofstream *out,class TesselPoint *point, LinkedCell *LC);236 237 set<TesselPoint*> * GetAllConnectedPoints( ofstream *out,const TesselPoint* const Point) const;238 set<BoundaryTriangleSet*> *GetAllTriangles( ofstream *out,const BoundaryPointSet * const Point) const;239 list<list<TesselPoint*> *> * GetPathsOfConnectedPoints( ofstream *out,const TesselPoint* const Point) const;240 list<list<TesselPoint*> *> * GetClosedPathsOfConnectedPoints( ofstream *out,const TesselPoint* const Point) const;241 list<TesselPoint*> * GetCircleOfConnectedPoints( ofstream *out,const TesselPoint* const Point, const Vector * const Reference = NULL) const;235 void AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell *LC); 236 237 set<TesselPoint*> * GetAllConnectedPoints(const TesselPoint* const Point) const; 238 set<BoundaryTriangleSet*> *GetAllTriangles(const BoundaryPointSet * const Point) const; 239 list<list<TesselPoint*> *> * GetPathsOfConnectedPoints(const TesselPoint* const Point) const; 240 list<list<TesselPoint*> *> * GetClosedPathsOfConnectedPoints(const TesselPoint* const Point) const; 241 list<TesselPoint*> * GetCircleOfConnectedPoints(const TesselPoint* const Point, const Vector * const Reference = NULL) const; 242 242 class BoundaryPointSet *GetCommonEndpoint(const BoundaryLineSet * line1, const BoundaryLineSet * line2) const; 243 243 list<BoundaryTriangleSet*> *FindTriangles(const TesselPoint* const Points[3]) const; 244 list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint( ofstream *out,const Vector *x, const LinkedCell* LC) const;245 class BoundaryTriangleSet * FindClosestTriangleToPoint( ofstream *out,const Vector *x, const LinkedCell* LC) const;246 bool IsInnerPoint( ofstream *out,const Vector &Point, const LinkedCell* const LC) const;247 bool IsInnerPoint( ofstream *out,const TesselPoint * const Point, const LinkedCell* const LC) const;244 list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint(const Vector *x, const LinkedCell* LC) const; 245 class BoundaryTriangleSet * FindClosestTriangleToPoint(const Vector *x, const LinkedCell* LC) const; 246 bool IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const; 247 bool IsInnerPoint(const TesselPoint * const Point, const LinkedCell* const LC) const; 248 248 bool AddBoundaryPoint(TesselPoint * Walker, const int n); 249 249 … … 254 254 255 255 // store envelope in file 256 void Output( ofstream *out,const char *filename, const PointCloud * const cloud);256 void Output(const char *filename, const PointCloud * const cloud); 257 257 258 258 PointMap PointsOnBoundary;
Note:
See TracChangeset
for help on using the changeset viewer.
