libigl v2.5.0
Loading...
Searching...
No Matches
hausdorff.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_COPYLEFT_CGAL_HAUSDORFF_H
9#define IGL_COPYLEFT_CGAL_HAUSDORFF_H
10#include "../../igl_inline.h"
11
12#include <Eigen/Dense>
13#include "CGAL_includes.hpp"
14#include <vector>
15
16namespace igl
17{
18 namespace copyleft
19 {
20 namespace cgal
21 {
34 template <
35 typename DerivedV,
36 typename Kernel,
37 typename Scalar>
39 const Eigen::MatrixBase<DerivedV>& V,
40 const CGAL::AABB_tree<
41 CGAL::AABB_traits<Kernel,
42 CGAL::AABB_triangle_primitive<Kernel,
43 typename std::vector<CGAL::Triangle_3<Kernel> >::iterator
44 >
45 >
46 > & treeB,
47 const std::vector<CGAL::Triangle_3<Kernel> > & TB,
48 Scalar & l,
49 Scalar & u);
50 }
51 }
52}
53
54#ifndef IGL_STATIC_LIBRARY
55# include "hausdorff.cpp"
56#endif
57
58#endif
59
60
#define IGL_INLINE
Definition igl_inline.h:15
void hausdorff(const Eigen::MatrixBase< DerivedV > &V, const CGAL::AABB_tree< CGAL::AABB_traits< Kernel, CGAL::AABB_triangle_primitive< Kernel, typename std::vector< CGAL::Triangle_3< Kernel > >::iterator > > > &treeB, const std::vector< CGAL::Triangle_3< Kernel > > &TB, Scalar &l, Scalar &u)
Compute lower and upper bounds (l,u) on the Hausdorff distance between a triangle (V) and a pointset ...
Definition AABB.h:17