libsurf
Programmer's Documentation

dcspatialgeometry.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 DCSPATIALGEOMETRY_H
16 #define DCSPATIALGEOMETRY_H
17 
18 #include "dcgeometry.h"
19 #include <genua/point.h>
20 
32 {
33 public:
34 
36  DcSpatialGeometry(Real stmin=-0.1, Real stmax=1.1)
37  : DcGeometry(stmin, stmax) {}
38 
40  virtual int edgesIntersect(uint as, uint at, uint bs, uint bt) const;
41 
43  virtual bool encroaches(const DelaunayCore &core,
44  const uint vf[], uint v) const;
45 
47  virtual bool encroachesEdge(uint src, uint trg, uint v) const;
48 
49 private:
50 
52  void pointOnSphere(const uint vf[], Vct3 & pcs) const;
53 
54 private:
55 
58 };
59 
60 #endif // DCSPATIALGEOMETRY_H
PointList< 3 > m_vtx
vertex array
Definition: dcspatialgeometry.h:57
Delaunay triangulations.
Definition: delaunaycore.h:42
Geometric criteria used in Delaunay triangulation.
Definition: dcgeometry.h:38
DcSpatialGeometry(Real stmin=-0.1, Real stmax=1.1)
empty geometry object
Definition: dcspatialgeometry.h:36
virtual bool encroachesEdge(uint src, uint trg, uint v) const
true if vertex encroaches ball around protected edge
Definition: dcspatialgeometry.cpp:35
virtual int edgesIntersect(uint as, uint at, uint bs, uint bt) const
check whether edge (as,at) intersects (bs,bt)
virtual bool encroaches(const DelaunayCore &core, const uint vf[], uint v) const
encroachment criterion
Definition: dcspatialgeometry.cpp:19
void pointOnSphere(const uint vf[], Vct3 &pcs) const
compute point on circumsphere
Definition: dcspatialgeometry.cpp:40
Three-dimensional Delaunay criteria.
Definition: dcspatialgeometry.h:31
Generated on Wed Jan 19 2022 03:03:15 for libsurf by   doxygen 1.8.5