12 #include "TPolyLine.h"
15 #include "PointCoordinates.h"
16 #include "RboxPoints.h"
17 #include "QhullError.h"
20 #include "QhullFacet.h"
21 #include "QhullFacetList.h"
22 #include "QhullFacetSet.h"
23 #include "QhullLinkedList.h"
24 #include "QhullVertex.h"
26 #include "QhullVertexSet.h"
51 DTFE(
const std::vector<Vertex>& vertices);
57 DTFE(
const std::vector<std::vector<double>>& vertices);
81 const std::vector<Vertex>&
GetBestFacet(
const std::vector<double>& v,
bool* isin=NULL)
const;
84 std::vector<TPolyLine*>
Polygons()
const;
90 std::map<size_t, std::vector<Vertex>>
_facets;
~DTFE()
Destructor.
Definition: DTFE.cc:54
size_t _dim
Dimension of the space.
Definition: DTFE.hh:88
std::vector< TPolyLine * > Polygons() const
Returns an array of polygons to be drawn in ROOT (only 2D)
Definition: DTFE.cc:134
Set of functions that compose the Geometry package.
orgQhull::Qhull * _qhull
Pointer to qhull object, owns the memory.
Definition: DTFE.hh:91
Computes the Delaunay Tesselation Field Estimator (DTFE) of a set of points.
Definition: DTFE.hh:42
std::vector< Vertex > _vertices
Vector of N vertices.
Definition: DTFE.hh:89
std::map< size_t, std::vector< Vertex > > _facets
Map of facets (simplices)
Definition: DTFE.hh:90
const Vertex & GetVertex(const size_t i) const
Returns a specific vertex.
Definition: DTFE.hh:78
DTFE & operator=(const DTFE &del)
Equality operator.
Definition: DTFE.cc:39
const std::vector< Vertex > & GetVertexArray() const
Returns the array of vertices on which the triangulation is constructed.
Definition: DTFE.hh:75
DTFE()
Default constructor, initilizes everything to 0.
Definition: DTFE.cc:3
bool Initialize()
Find the DTFE triangulation of the N vertices.
Definition: DTFE.cc:59
const size_t & GetDimension() const
Returns the dimension of the space in which the tesselation is constructed.
Definition: DTFE.hh:72
const std::vector< Vertex > & GetBestFacet(const std::vector< double > &v, bool *isin=NULL) const
Finds the closest facet and returns its vertices.
Definition: DTFE.cc:110
Defines an n-dimensional vertex and its mapping onto a sclar field.
Definition: Vertex.hh:13