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_HAUSDORFF_H
9#define IGL_HAUSDORFF_H
10#include "igl_inline.h"
11
12#include <Eigen/Dense>
13#include <functional>
14
15namespace igl
16{
40 template <
41 typename DerivedVA,
42 typename DerivedFA,
43 typename DerivedVB,
44 typename DerivedFB,
45 typename Scalar>
47 const Eigen::MatrixBase<DerivedVA> & VA,
48 const Eigen::MatrixBase<DerivedFA> & FA,
49 const Eigen::MatrixBase<DerivedVB> & VB,
50 const Eigen::MatrixBase<DerivedFB> & FB,
51 Scalar & d);
63 template <
64 typename DerivedV,
65 typename Scalar>
67 const Eigen::MatrixBase<DerivedV>& V,
68 const std::function<
69 Scalar(const Scalar &,const Scalar &, const Scalar &)> & dist_to_B,
70 Scalar & l,
71 Scalar & u);
72}
73
74#ifndef IGL_STATIC_LIBRARY
75# include "hausdorff.cpp"
76#endif
77
78#endif
79
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void hausdorff(const Eigen::MatrixBase< DerivedVA > &VA, const Eigen::MatrixBase< DerivedFA > &FA, const Eigen::MatrixBase< DerivedVB > &VB, const Eigen::MatrixBase< DerivedFB > &FB, Scalar &d)
Compute the Hausdorff distance between mesh (VA,FA) and mesh (VB,FB).