libsurf
Programmer's Documentation

dcplanegeometry.h (r6227/r5385)
1 
2 /* Copyright (C) 2015 David Eller <david@larosterna.com>
3  *
4  * Commercial License Usage
5  * Licensees holding valid commercial licenses may use this file in accordance
6  * with the terms contained in their respective non-exclusive license agreement.
7  * For further information contact david@larosterna.com .
8  *
9  * GNU General Public License Usage
10  * Alternatively, this file may be used under the terms of the GNU General
11  * Public License version 3.0 as published by the Free Software Foundation and
12  * appearing in the file gpl.txt included in the packaging of this file.
13  */
14 
15 #ifndef DCPLANEGEOMETRY_H
16 #define DCPLANEGEOMETRY_H
17 
18 #include "dcgeometry.h"
19 #include <genua/point.h>
20 
29 {
30 public:
31 
33  DcPlaneGeometry(Real qmin, Real qmax) : DcGeometry(qmin, qmax) {}
34 
36  void sortPolar(const DcEdge *pe, Indices & c) const;
37 
39  Vct2 circumCenter(const uint *vi) const {
40  return circumCenter(m_st, vi);
41  }
42 
44  static Vct2 circumCenter(const PointList<2> &pts, const uint *vi);
45 
46 private:
47 
48 };
49 
50 #endif // DCPLANEGEOMETRY_H
Vct2 circumCenter(const uint *vi) const
compute circumcenter of triangle vi
Definition: dcplanegeometry.h:39
Plane geometry for use with DelaunayCore.
Definition: dcplanegeometry.h:28
Geometric criteria used in Delaunay triangulation.
Definition: dcgeometry.h:38
void sortPolar(const DcEdge *pe, Indices &c) const
sort points in polar order with respect to edge pe
Definition: dcplanegeometry.cpp:77
DcPlaneGeometry(Real qmin, Real qmax)
empty geometry for fixed coordinate range
Definition: dcplanegeometry.h:33
PointList< 2 > m_st
vertices in the definition plane
Definition: dcgeometry.h:207
Butterfly edge for Delaunay algorithms.
Definition: dcedge.h:39
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5