Changeset 4af89b for molecuilder/src/tesselation.hpp
- Timestamp:
- Nov 25, 2009, 12:18:18 PM (16 years ago)
- Children:
- edf611
- Parents:
- 1a3354
- File:
-
- 1 edited
-
molecuilder/src/tesselation.hpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/tesselation.hpp
r1a3354 r4af89b 53 53 #define PointTestPair pair < PointMap::iterator, bool > 54 54 #define CandidateList list <class CandidateForTesselation *> 55 #define CandidateMap map <class BoundaryLineSet *, class CandidateForTesselation *> 55 56 56 57 #define LineMap multimap < int, class BoundaryLineSet * > … … 114 115 TriangleMap triangles; 115 116 int Nr; 117 bool skipped; 116 118 }; 117 119 … … 186 188 class CandidateForTesselation { 187 189 public : 190 CandidateForTesselation(BoundaryLineSet* currentBaseLine); 188 191 CandidateForTesselation(TesselPoint* candidate, BoundaryLineSet* currentBaseLine, Vector OptCandidateCenter, Vector OtherOptCandidateCenter); 189 192 ~CandidateForTesselation(); … … 193 196 Vector OptCenter; 194 197 Vector OtherOptCenter; 195 }; 198 double ShortestAngle; 199 double OtherShortestAngle; 200 }; 201 202 ostream & operator <<(ostream &ost, const CandidateForTesselation &a); 196 203 197 204 // =========================================================== class TESSELATION =========================================== … … 211 218 void AddTesselationTriangle(); 212 219 void AddTesselationTriangle(const int nr); 220 void AddCandidateTriangle(CandidateForTesselation &CandidateLine); 213 221 void RemoveTesselationTriangle(class BoundaryTriangleSet *triangle); 214 222 void RemoveTesselationLine(class BoundaryLineSet *line); … … 220 228 void FindSecondPointForTesselation(class TesselPoint* a, Vector Oben, class TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell *LC); 221 229 void FindThirdPointForTesselation(Vector &NormalVector, Vector &SearchDirection, Vector &OldSphereCenter, class BoundaryLineSet *BaseLine, const class TesselPoint * const ThirdNode, CandidateList* &candidates, double *ShortestAngle, const double RADIUS, const LinkedCell *LC) const; 222 bool FindNextSuitableTriangle( BoundaryLineSet &Line, BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC);230 bool FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC); 223 231 int CheckPresenceOfTriangle(class TesselPoint *Candidates[3]) const; 224 232 class BoundaryTriangleSet * GetPresentTriangle(TesselPoint *Candidates[3]); … … 260 268 PointMap PointsOnBoundary; 261 269 LineMap LinesOnBoundary; 270 CandidateMap OpenLines; 262 271 TriangleMap TrianglesOnBoundary; 263 272 int PointsOnBoundaryCount;
Note:
See TracChangeset
for help on using the changeset viewer.
