libigl v2.5.0
Loading...
Searching...
No Matches
snap_points.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) 2013 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_SNAP_POINTS_H
9#define IGL_SNAP_POINTS_H
10
11#include "igl_inline.h"
12#include <Eigen/Core>
13
14namespace igl
15{
23 template <
24 typename DerivedC,
25 typename DerivedV,
26 typename DerivedI,
27 typename DerivedminD,
28 typename DerivedVI>
30 const Eigen::MatrixBase<DerivedC > & C,
31 const Eigen::MatrixBase<DerivedV > & V,
32 Eigen::PlainObjectBase<DerivedI > & I,
33 Eigen::PlainObjectBase<DerivedminD > & minD,
34 Eigen::PlainObjectBase<DerivedVI > & VI);
36 template <
37 typename DerivedC,
38 typename DerivedV,
39 typename DerivedI,
40 typename DerivedminD>
42 const Eigen::MatrixBase<DerivedC > & C,
43 const Eigen::MatrixBase<DerivedV > & V,
44 Eigen::PlainObjectBase<DerivedI > & I,
45 Eigen::PlainObjectBase<DerivedminD > & minD);
47 template <
48 typename DerivedC,
49 typename DerivedV,
50 typename DerivedI >
52 const Eigen::MatrixBase<DerivedC > & C,
53 const Eigen::MatrixBase<DerivedV > & V,
54 Eigen::PlainObjectBase<DerivedI > & I);
55}
56
57#ifndef IGL_STATIC_LIBRARY
58# include "snap_points.cpp"
59#endif
60
61#endif
62
63
64
65
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void snap_points(const Eigen::MatrixBase< DerivedC > &C, const Eigen::MatrixBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedI > &I, Eigen::PlainObjectBase< DerivedminD > &minD, Eigen::PlainObjectBase< DerivedVI > &VI)
Snap list of points C to closest of another list of points V.