[357fba] | 1 | /*
|
---|
| 2 | * tesselation.hpp
|
---|
| 3 | *
|
---|
| 4 | * The tesselation class is meant to contain the envelope (concave, convex or neither) of a set of Vectors. As we actually mean this stuff for atoms, we have to encapsulate it all a bit.
|
---|
| 5 | *
|
---|
| 6 | * Created on: Aug 3, 2009
|
---|
| 7 | * Author: heber
|
---|
| 8 | */
|
---|
| 9 |
|
---|
| 10 | #ifndef TESSELATION_HPP_
|
---|
| 11 | #define TESSELATION_HPP_
|
---|
| 12 |
|
---|
| 13 | using namespace std;
|
---|
| 14 |
|
---|
[f66195] | 15 | /*********************************************** includes ***********************************/
|
---|
| 16 |
|
---|
[357fba] | 17 | // include config.h
|
---|
| 18 | #ifdef HAVE_CONFIG_H
|
---|
| 19 | #include <config.h>
|
---|
| 20 | #endif
|
---|
| 21 |
|
---|
| 22 | #include <map>
|
---|
| 23 | #include <list>
|
---|
[7c14ec] | 24 | #include <set>
|
---|
[856098] | 25 | #include <stack>
|
---|
[357fba] | 26 |
|
---|
[6b919f8] | 27 | #include "atom_particleinfo.hpp"
|
---|
[4455f4] | 28 | #include "helpers.hpp"
|
---|
[6b919f8] | 29 | #include "vector.hpp"
|
---|
[357fba] | 30 |
|
---|
[f66195] | 31 | /****************************************** forward declarations *****************************/
|
---|
| 32 |
|
---|
[357fba] | 33 | class BoundaryPointSet;
|
---|
| 34 | class BoundaryLineSet;
|
---|
| 35 | class BoundaryTriangleSet;
|
---|
[f66195] | 36 | class LinkedCell;
|
---|
[357fba] | 37 | class TesselPoint;
|
---|
| 38 | class PointCloud;
|
---|
| 39 | class Tesselation;
|
---|
| 40 |
|
---|
[f66195] | 41 | /********************************************** definitions *********************************/
|
---|
| 42 |
|
---|
[57066a] | 43 | #define DoTecplotOutput 1
|
---|
| 44 | #define DoRaster3DOutput 1
|
---|
| 45 | #define DoVRMLOutput 1
|
---|
| 46 | #define TecplotSuffix ".dat"
|
---|
| 47 | #define Raster3DSuffix ".r3d"
|
---|
| 48 | #define VRMLSUffix ".wrl"
|
---|
| 49 |
|
---|
[fad93c] | 50 | #define ParallelEpsilon 1e-3
|
---|
| 51 |
|
---|
[357fba] | 52 | // ======================================================= some template functions =========================================
|
---|
| 53 |
|
---|
[c15ca2] | 54 | #define IndexToIndex map <int, int>
|
---|
| 55 |
|
---|
[357fba] | 56 | #define PointMap map < int, class BoundaryPointSet * >
|
---|
[262bae] | 57 | #define PointSet set < class BoundaryPointSet * >
|
---|
| 58 | #define PointList list < class BoundaryPointSet * >
|
---|
[357fba] | 59 | #define PointPair pair < int, class BoundaryPointSet * >
|
---|
| 60 | #define PointTestPair pair < PointMap::iterator, bool >
|
---|
[262bae] | 61 |
|
---|
[357fba] | 62 | #define CandidateList list <class CandidateForTesselation *>
|
---|
[1e168b] | 63 | #define CandidateMap map <class BoundaryLineSet *, class CandidateForTesselation *>
|
---|
[357fba] | 64 |
|
---|
| 65 | #define LineMap multimap < int, class BoundaryLineSet * >
|
---|
[262bae] | 66 | #define LineSet set < class BoundaryLineSet * >
|
---|
| 67 | #define LineList list < class BoundaryLineSet * >
|
---|
[357fba] | 68 | #define LinePair pair < int, class BoundaryLineSet * >
|
---|
| 69 | #define LineTestPair pair < LineMap::iterator, bool >
|
---|
| 70 |
|
---|
| 71 | #define TriangleMap map < int, class BoundaryTriangleSet * >
|
---|
[262bae] | 72 | #define TriangleSet set < class BoundaryTriangleSet * >
|
---|
| 73 | #define TriangleList list < class BoundaryTriangleSet * >
|
---|
[357fba] | 74 | #define TrianglePair pair < int, class BoundaryTriangleSet * >
|
---|
| 75 | #define TriangleTestPair pair < TrianglePair::iterator, bool >
|
---|
| 76 |
|
---|
[262bae] | 77 | #define PolygonMap map < int, class BoundaryPolygonSet * >
|
---|
| 78 | #define PolygonSet set < class BoundaryPolygonSet * >
|
---|
| 79 | #define PolygonList list < class BoundaryPolygonSet * >
|
---|
| 80 |
|
---|
[97498a] | 81 | #define DistanceToPointMap multimap <double, class BoundaryPointSet * >
|
---|
| 82 | #define DistanceToPointPair pair <double, class BoundaryPointSet * >
|
---|
[c15ca2] | 83 |
|
---|
[357fba] | 84 | #define DistanceMultiMap multimap <double, pair < PointMap::iterator, PointMap::iterator> >
|
---|
| 85 | #define DistanceMultiMapPair pair <double, pair < PointMap::iterator, PointMap::iterator> >
|
---|
| 86 |
|
---|
[f67b6e] | 87 | #define TesselPointList list <TesselPoint *>
|
---|
[262bae] | 88 | #define TesselPointSet set <TesselPoint *>
|
---|
[f67b6e] | 89 |
|
---|
[f66195] | 90 | /********************************************** declarations *******************************/
|
---|
[357fba] | 91 |
|
---|
| 92 | template <typename T> void SetEndpointsOrdered(T endpoints[2], T endpoint1, T endpoint2)
|
---|
| 93 | {
|
---|
| 94 | if (endpoint1->Nr < endpoint2->Nr) {
|
---|
| 95 | endpoints[0] = endpoint1;
|
---|
| 96 | endpoints[1] = endpoint2;
|
---|
| 97 | } else {
|
---|
| 98 | endpoints[0] = endpoint2;
|
---|
| 99 | endpoints[1] = endpoint1;
|
---|
| 100 | }
|
---|
| 101 | };
|
---|
| 102 |
|
---|
| 103 | // ======================================================== class BoundaryPointSet =========================================
|
---|
| 104 |
|
---|
| 105 | class BoundaryPointSet {
|
---|
| 106 | public:
|
---|
| 107 | BoundaryPointSet();
|
---|
[9473f6] | 108 | BoundaryPointSet(TesselPoint * const Walker);
|
---|
[357fba] | 109 | ~BoundaryPointSet();
|
---|
| 110 |
|
---|
[9473f6] | 111 | void AddLine(BoundaryLineSet * const line);
|
---|
[357fba] | 112 |
|
---|
| 113 | LineMap lines;
|
---|
| 114 | int LinesCount;
|
---|
| 115 | TesselPoint *node;
|
---|
[16d866] | 116 | double value;
|
---|
[357fba] | 117 | int Nr;
|
---|
| 118 | };
|
---|
| 119 |
|
---|
[776b64] | 120 | ostream & operator << (ostream &ost, const BoundaryPointSet &a);
|
---|
[357fba] | 121 |
|
---|
| 122 | // ======================================================== class BoundaryLineSet ==========================================
|
---|
| 123 |
|
---|
| 124 | class BoundaryLineSet {
|
---|
| 125 | public:
|
---|
| 126 | BoundaryLineSet();
|
---|
[9473f6] | 127 | BoundaryLineSet(BoundaryPointSet * const Point[2], const int number);
|
---|
| 128 | BoundaryLineSet(BoundaryPointSet * const Point1, BoundaryPointSet * const Point2, const int number);
|
---|
[357fba] | 129 | ~BoundaryLineSet();
|
---|
| 130 |
|
---|
[9473f6] | 131 | void AddTriangle(BoundaryTriangleSet * const triangle);
|
---|
| 132 | bool IsConnectedTo(const BoundaryLineSet * const line) const;
|
---|
| 133 | bool ContainsBoundaryPoint(const BoundaryPointSet * const point) const;
|
---|
| 134 | bool CheckConvexityCriterion() const;
|
---|
| 135 | class BoundaryPointSet *GetOtherEndpoint(const BoundaryPointSet * const point) const;
|
---|
[357fba] | 136 |
|
---|
| 137 | class BoundaryPointSet *endpoints[2];
|
---|
| 138 | TriangleMap triangles;
|
---|
| 139 | int Nr;
|
---|
[1e168b] | 140 | bool skipped;
|
---|
[357fba] | 141 | };
|
---|
| 142 |
|
---|
[776b64] | 143 | ostream & operator << (ostream &ost, const BoundaryLineSet &a);
|
---|
[357fba] | 144 |
|
---|
| 145 | // ======================================================== class BoundaryTriangleSet =======================================
|
---|
| 146 |
|
---|
| 147 | class BoundaryTriangleSet {
|
---|
| 148 | public:
|
---|
| 149 | BoundaryTriangleSet();
|
---|
[9473f6] | 150 | BoundaryTriangleSet(class BoundaryLineSet * const line[3], const int number);
|
---|
[357fba] | 151 | ~BoundaryTriangleSet();
|
---|
| 152 |
|
---|
[9473f6] | 153 | void GetNormalVector(const Vector &NormalVector);
|
---|
| 154 | void GetCenter(Vector * const center) const;
|
---|
| 155 | bool GetIntersectionInsideTriangle(const Vector * const MolCenter, const Vector * const x, Vector * const Intersection) const;
|
---|
| 156 | double GetClosestPointInsideTriangle(const Vector * const x, Vector * const ClosestPoint) const;
|
---|
| 157 | bool ContainsBoundaryLine(const BoundaryLineSet * const line) const;
|
---|
| 158 | bool ContainsBoundaryPoint(const BoundaryPointSet * const point) const;
|
---|
| 159 | bool ContainsBoundaryPoint(const TesselPoint * const point) const;
|
---|
| 160 | class BoundaryPointSet *GetThirdEndpoint(const BoundaryLineSet * const line) const;
|
---|
| 161 | bool IsPresentTupel(const BoundaryPointSet * const Points[3]) const;
|
---|
| 162 | bool IsPresentTupel(const BoundaryTriangleSet * const T) const;
|
---|
[357fba] | 163 |
|
---|
| 164 | class BoundaryPointSet *endpoints[3];
|
---|
| 165 | class BoundaryLineSet *lines[3];
|
---|
| 166 | Vector NormalVector;
|
---|
[b998c3] | 167 | Vector SphereCenter;
|
---|
[357fba] | 168 | int Nr;
|
---|
| 169 | };
|
---|
| 170 |
|
---|
[776b64] | 171 | ostream & operator << (ostream &ost, const BoundaryTriangleSet &a);
|
---|
[357fba] | 172 |
|
---|
[262bae] | 173 |
|
---|
| 174 | // ======================================================== class BoundaryTriangleSet =======================================
|
---|
| 175 |
|
---|
| 176 | /** Set of BoundaryPointSet.
|
---|
| 177 | * This is just meant as a container for a group of endpoints, extending the node, line, triangle concept. However, this has
|
---|
| 178 | * only marginally something to do with the tesselation. Hence, there is no incorporation into the bookkeeping of the Tesselation
|
---|
| 179 | * class (i.e. no allocation, no deletion).
|
---|
| 180 | * \note we assume that the set of endpoints reside (more or less) on a plane.
|
---|
| 181 | */
|
---|
| 182 | class BoundaryPolygonSet {
|
---|
| 183 | public:
|
---|
| 184 | BoundaryPolygonSet();
|
---|
| 185 | ~BoundaryPolygonSet();
|
---|
| 186 |
|
---|
| 187 | Vector * GetNormalVector(const Vector &NormalVector) const;
|
---|
| 188 | void GetCenter(Vector *center) const;
|
---|
| 189 | bool ContainsBoundaryLine(const BoundaryLineSet * const line) const;
|
---|
| 190 | bool ContainsBoundaryPoint(const BoundaryPointSet * const point) const;
|
---|
| 191 | bool ContainsBoundaryPoint(const TesselPoint * const point) const;
|
---|
| 192 | bool ContainsBoundaryTriangle(const BoundaryTriangleSet * const point) const;
|
---|
| 193 | bool ContainsPresentTupel(const BoundaryPointSet * const * Points, const int dim) const;
|
---|
| 194 | bool ContainsPresentTupel(const BoundaryPolygonSet * const P) const;
|
---|
| 195 | bool ContainsPresentTupel(const PointSet &endpoints) const;
|
---|
[856098] | 196 | TriangleSet * GetAllContainedTrianglesFromEndpoints() const;
|
---|
[262bae] | 197 | bool FillPolygonFromTrianglesOfLine(const BoundaryLineSet * const line);
|
---|
| 198 |
|
---|
| 199 | PointSet endpoints;
|
---|
| 200 | int Nr;
|
---|
| 201 | };
|
---|
| 202 |
|
---|
| 203 | ostream & operator << (ostream &ost, const BoundaryPolygonSet &a);
|
---|
| 204 |
|
---|
[357fba] | 205 | // =========================================================== class TESSELPOINT ===========================================
|
---|
| 206 |
|
---|
| 207 | /** Is a single point of the set of Vectors, also a super-class to be inherited and and its functions to be implemented.
|
---|
| 208 | */
|
---|
[4455f4] | 209 | class TesselPoint : virtual public ParticleInfo {
|
---|
[357fba] | 210 | public:
|
---|
| 211 | TesselPoint();
|
---|
[5c7bf8] | 212 | virtual ~TesselPoint();
|
---|
[357fba] | 213 |
|
---|
| 214 | Vector *node; // pointer to position of the dot in space
|
---|
[5c7bf8] | 215 |
|
---|
| 216 | virtual ostream & operator << (ostream &ost);
|
---|
[357fba] | 217 | };
|
---|
| 218 |
|
---|
| 219 | ostream & operator << (ostream &ost, const TesselPoint &a);
|
---|
| 220 |
|
---|
| 221 | // =========================================================== class POINTCLOUD ============================================
|
---|
| 222 |
|
---|
| 223 | /** Super-class for all point clouds structures, also molecules. They have to inherit this structure and implement the virtual function to access the Vectors.
|
---|
| 224 | * This basically encapsulates a list structure.
|
---|
| 225 | */
|
---|
| 226 | class PointCloud {
|
---|
| 227 | public:
|
---|
| 228 | PointCloud();
|
---|
[ab1932] | 229 | virtual ~PointCloud();
|
---|
[357fba] | 230 |
|
---|
[6a7f78c] | 231 | virtual const char * const GetName() const { return "unknown"; };
|
---|
[e138de] | 232 | virtual Vector *GetCenter() const { return NULL; };
|
---|
[776b64] | 233 | virtual TesselPoint *GetPoint() const { return NULL; };
|
---|
| 234 | virtual TesselPoint *GetTerminalPoint() const { return NULL; };
|
---|
[71b20e] | 235 | virtual int GetMaxId() const { return 0; };
|
---|
[776b64] | 236 | virtual void GoToNext() const {};
|
---|
| 237 | virtual void GoToPrevious() const {};
|
---|
| 238 | virtual void GoToFirst() const {};
|
---|
| 239 | virtual void GoToLast() const {};
|
---|
[6a7f78c] | 240 | virtual bool IsEmpty() const { return true; };
|
---|
| 241 | virtual bool IsEnd() const { return true; };
|
---|
[357fba] | 242 | };
|
---|
| 243 |
|
---|
| 244 | // ======================================================== class CandidateForTesselation =========================================
|
---|
| 245 |
|
---|
| 246 | class CandidateForTesselation {
|
---|
| 247 | public :
|
---|
[1e168b] | 248 | CandidateForTesselation(BoundaryLineSet* currentBaseLine);
|
---|
[357fba] | 249 | CandidateForTesselation(TesselPoint* candidate, BoundaryLineSet* currentBaseLine, Vector OptCandidateCenter, Vector OtherOptCandidateCenter);
|
---|
| 250 | ~CandidateForTesselation();
|
---|
| 251 |
|
---|
[f67b6e] | 252 | TesselPointList pointlist;
|
---|
[357fba] | 253 | BoundaryLineSet *BaseLine;
|
---|
| 254 | Vector OptCenter;
|
---|
| 255 | Vector OtherOptCenter;
|
---|
[1e168b] | 256 | double ShortestAngle;
|
---|
| 257 | double OtherShortestAngle;
|
---|
[357fba] | 258 | };
|
---|
| 259 |
|
---|
[1e168b] | 260 | ostream & operator <<(ostream &ost, const CandidateForTesselation &a);
|
---|
| 261 |
|
---|
[357fba] | 262 | // =========================================================== class TESSELATION ===========================================
|
---|
| 263 |
|
---|
| 264 | /** Contains the envelope to a PointCloud.
|
---|
| 265 | */
|
---|
[5c7bf8] | 266 | class Tesselation : public PointCloud {
|
---|
[357fba] | 267 | public:
|
---|
| 268 |
|
---|
| 269 | Tesselation();
|
---|
[5c7bf8] | 270 | virtual ~Tesselation();
|
---|
[357fba] | 271 |
|
---|
[776b64] | 272 | void AddTesselationPoint(TesselPoint* Candidate, const int n);
|
---|
[f1ef60a] | 273 | void SetTesselationPoint(TesselPoint* Candidate, const int n) const;
|
---|
[776b64] | 274 | void AddTesselationLine(class BoundaryPointSet *a, class BoundaryPointSet *b, const int n);
|
---|
| 275 | void AlwaysAddTesselationTriangleLine(class BoundaryPointSet *a, class BoundaryPointSet *b, const int n);
|
---|
[16d866] | 276 | void AddTesselationTriangle();
|
---|
[776b64] | 277 | void AddTesselationTriangle(const int nr);
|
---|
[f67b6e] | 278 | void AddCandidateTriangle(CandidateForTesselation CandidateLine);
|
---|
[16d866] | 279 | void RemoveTesselationTriangle(class BoundaryTriangleSet *triangle);
|
---|
| 280 | void RemoveTesselationLine(class BoundaryLineSet *line);
|
---|
| 281 | void RemoveTesselationPoint(class BoundaryPointSet *point);
|
---|
| 282 |
|
---|
[357fba] | 283 |
|
---|
| 284 | // concave envelope
|
---|
[e138de] | 285 | void FindStartingTriangle(const double RADIUS, const LinkedCell *LC);
|
---|
[776b64] | 286 | void FindSecondPointForTesselation(class TesselPoint* a, Vector Oben, class TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell *LC);
|
---|
[f67b6e] | 287 | void FindThirdPointForTesselation(Vector &NormalVector, Vector &SearchDirection, Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class TesselPoint * const ThirdNode, const double RADIUS, const LinkedCell *LC) const;
|
---|
[1e168b] | 288 | bool FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC);
|
---|
[f1ef60a] | 289 | int CheckPresenceOfTriangle(class TesselPoint *Candidates[3]) const;
|
---|
[e138de] | 290 | class BoundaryTriangleSet * GetPresentTriangle(TesselPoint *Candidates[3]);
|
---|
[357fba] | 291 |
|
---|
| 292 | // convex envelope
|
---|
[e138de] | 293 | void TesselateOnBoundary(const PointCloud * const cloud);
|
---|
| 294 | void GuessStartingTriangle();
|
---|
| 295 | bool InsertStraddlingPoints(const PointCloud *cloud, const LinkedCell *LC);
|
---|
| 296 | double RemovePointFromTesselatedSurface(class BoundaryPointSet *point);
|
---|
| 297 | class BoundaryLineSet * FlipBaseline(class BoundaryLineSet *Base);
|
---|
| 298 | double PickFarthestofTwoBaselines(class BoundaryLineSet *Base);
|
---|
| 299 | class BoundaryPointSet *IsConvexRectangle(class BoundaryLineSet *Base);
|
---|
[57066a] | 300 | map<int, int> * FindAllDegeneratedTriangles();
|
---|
| 301 | map<int, int> * FindAllDegeneratedLines();
|
---|
[7c14ec] | 302 | void RemoveDegeneratedTriangles();
|
---|
[e138de] | 303 | void AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell *LC);
|
---|
[262bae] | 304 | int CorrectAllDegeneratedPolygons();
|
---|
[16d866] | 305 |
|
---|
[e138de] | 306 | set<TesselPoint*> * GetAllConnectedPoints(const TesselPoint* const Point) const;
|
---|
| 307 | set<BoundaryTriangleSet*> *GetAllTriangles(const BoundaryPointSet * const Point) const;
|
---|
| 308 | list<list<TesselPoint*> *> * GetPathsOfConnectedPoints(const TesselPoint* const Point) const;
|
---|
| 309 | list<list<TesselPoint*> *> * GetClosedPathsOfConnectedPoints(const TesselPoint* const Point) const;
|
---|
[27bd2f] | 310 | list<TesselPoint*> * GetCircleOfSetOfPoints(set<TesselPoint*> *SetOfNeighbours, const TesselPoint* const Point, const Vector * const Reference = NULL) const;
|
---|
[71b20e] | 311 | list<TesselPoint*> * GetCircleOfConnectedTriangles(set<TesselPoint*> *SetOfNeighbours, const TesselPoint* const Point, const Vector * const Reference) const;
|
---|
[776b64] | 312 | class BoundaryPointSet *GetCommonEndpoint(const BoundaryLineSet * line1, const BoundaryLineSet * line2) const;
|
---|
| 313 | list<BoundaryTriangleSet*> *FindTriangles(const TesselPoint* const Points[3]) const;
|
---|
[e138de] | 314 | list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint(const Vector *x, const LinkedCell* LC) const;
|
---|
| 315 | class BoundaryTriangleSet * FindClosestTriangleToPoint(const Vector *x, const LinkedCell* LC) const;
|
---|
[241485] | 316 | bool IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const;
|
---|
[9473f6] | 317 | double GetDistanceSquaredToSurface(const Vector &Point, const LinkedCell* const LC) const;
|
---|
[776b64] | 318 | bool AddBoundaryPoint(TesselPoint * Walker, const int n);
|
---|
[97498a] | 319 | DistanceToPointMap * FindClosestBoundaryPointsToVector(const Vector *x, const LinkedCell* LC) const;
|
---|
[c15ca2] | 320 | BoundaryLineSet * FindClosestBoundaryLineToVector(const Vector *x, const LinkedCell* LC) const;
|
---|
| 321 | TriangleList * FindClosestTrianglesToVector(const Vector *x, const LinkedCell* LC) const;
|
---|
| 322 | BoundaryTriangleSet* FindClosestTriangleToVector(const Vector *x, const LinkedCell* LC) const;
|
---|
[ab1932] | 323 |
|
---|
[0077b5] | 324 | // print for debugging
|
---|
[776b64] | 325 | void PrintAllBoundaryPoints(ofstream *out) const;
|
---|
| 326 | void PrintAllBoundaryLines(ofstream *out) const;
|
---|
| 327 | void PrintAllBoundaryTriangles(ofstream *out) const;
|
---|
[0077b5] | 328 |
|
---|
[57066a] | 329 | // store envelope in file
|
---|
[e138de] | 330 | void Output(const char *filename, const PointCloud * const cloud);
|
---|
[0077b5] | 331 |
|
---|
[357fba] | 332 | PointMap PointsOnBoundary;
|
---|
| 333 | LineMap LinesOnBoundary;
|
---|
[1e168b] | 334 | CandidateMap OpenLines;
|
---|
[357fba] | 335 | TriangleMap TrianglesOnBoundary;
|
---|
| 336 | int PointsOnBoundaryCount;
|
---|
| 337 | int LinesOnBoundaryCount;
|
---|
| 338 | int TrianglesOnBoundaryCount;
|
---|
| 339 |
|
---|
[5c7bf8] | 340 | // PointCloud implementation for PointsOnBoundary
|
---|
[776b64] | 341 | virtual Vector *GetCenter(ofstream *out) const;
|
---|
| 342 | virtual TesselPoint *GetPoint() const;
|
---|
| 343 | virtual TesselPoint *GetTerminalPoint() const;
|
---|
| 344 | virtual void GoToNext() const;
|
---|
| 345 | virtual void GoToPrevious() const;
|
---|
| 346 | virtual void GoToFirst() const;
|
---|
| 347 | virtual void GoToLast() const;
|
---|
| 348 | virtual bool IsEmpty() const;
|
---|
| 349 | virtual bool IsEnd() const;
|
---|
[5c7bf8] | 350 |
|
---|
[357fba] | 351 | class BoundaryPointSet *BPS[2];
|
---|
| 352 | class BoundaryLineSet *BLS[3];
|
---|
| 353 | class BoundaryTriangleSet *BTS;
|
---|
[57066a] | 354 | class BoundaryTriangleSet *LastTriangle;
|
---|
| 355 | int TriangleFilesWritten;
|
---|
[5c7bf8] | 356 |
|
---|
[08ef35] | 357 | private:
|
---|
[f1ef60a] | 358 | mutable class BoundaryPointSet *TPS[3]; //this is a Storage for pointers to triangle points, this and BPS[2] needed due to AddLine restrictions
|
---|
[08ef35] | 359 |
|
---|
[776b64] | 360 | mutable PointMap::const_iterator InternalPointer;
|
---|
[f1ef60a] | 361 |
|
---|
[f67b6e] | 362 | //bool HasOtherBaselineBetterCandidate(const BoundaryLineSet * const BaseRay, const TesselPoint * const OptCandidate, double ShortestAngle, double RADIUS, const LinkedCell * const LC) const;
|
---|
[357fba] | 363 | };
|
---|
| 364 |
|
---|
| 365 |
|
---|
| 366 | #endif /* TESSELATION_HPP_ */
|
---|