Fade2D Documentation pages v2.16.7
Delaunay Features
VoroVertex2.h
Go to the documentation of this file.
1 // Copyright (C) Geom Software e.U, Bernhard Kornberger, Graz/Austria
2 //
3 // This file is part of the Fade2D library. The student license is free
4 // of charge and covers personal non-commercial research. Licensees
5 // holding a commercial license may use this file in accordance with
6 // the Commercial License Agreement.
7 //
8 // This software is provided AS IS with NO WARRANTY OF ANY KIND,
9 // INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
10 // FOR A PARTICULAR PURPOSE.
11 //
12 // Please contact the author if any conditions of this licensing are
13 // not clear to you.
14 //
15 // Author: Bernhard Kornberger, bkorn (at) geom.at
16 // http://www.geom.at
17 
18 
23 #pragma once
24 #include "common.h"
25 #include "Triangle2.h"
26 
27 #if GEOM_PSEUDO3D==GEOM_TRUE
28  namespace GEOM_FADE25D {
29 #elif GEOM_PSEUDO3D==GEOM_FALSE
30  namespace GEOM_FADE2D {
31 #else
32  #error GEOM_PSEUDO3D is not defined
33 #endif
34 
35 class Voronoi2Impl; // FWD
36 
42 class CLASS_DECLSPEC VoroVertex2
43 {
44 public:
46  VoroVertex2(Voronoi2Impl* pImpl_,Triangle2* pT_);
47 
48 
57  bool isAlive() const;
58 
59 
67 
77 protected:
79  bool isSaved() const;
81  Voronoi2Impl* pImpl;
85  void computeCC(bool bForceExact);
87  Point2 voroPoint;
89  Triangle2* pT;
91  Point2* aDelVtx[3];
92 
93 };
94 
95 
96 } // (namespace)
97 
98 
CircumcenterQuality
Enumeration for the quality of the circumcenter computation.
Definition: Triangle2.h:35
Represents a 2D point.
Definition: Point2.h:61
Represents a triangle in a triangulation.
Definition: Triangle2.h:59
Voronoi vertex.
Definition: VoroVertex2.h:43
bool isAlive() const
Check if the Voronoi vertex is still valid.
Point2 getPoint()
Get the Voronoi vertex as a Point2.
Triangle2 * getDualTriangle() const
Retrieve the corresponding dual Delaunay triangle.