libigl v2.5.0
Loading...
Searching...
No Matches
in_element.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_IN_ELEMENT_H
9#define IGL_IN_ELEMENT_H
10
11#include "igl_inline.h"
12#include "AABB.h"
13#include <Eigen/Core>
14#include <Eigen/Sparse>
15
16namespace igl
17{
28 template <
29 typename DerivedV,
30 typename DerivedEle,
31 typename DerivedQ,
32 int DIM,
33 typename DerivedI>
35 const Eigen::MatrixBase<DerivedV> & V,
36 const Eigen::MatrixBase<DerivedEle> & Ele,
37 const Eigen::MatrixBase<DerivedQ> & Q,
38 const AABB<DerivedV,DIM> & aabb,
39 Eigen::PlainObjectBase<DerivedI> & I);
44 template <
45 typename DerivedV,
46 typename DerivedEle,
47 typename DerivedQ,
48 int DIM,
49 typename Scalar>
51 const Eigen::MatrixBase<DerivedV> & V,
52 const Eigen::MatrixBase<DerivedEle> & Ele,
53 const Eigen::MatrixBase<DerivedQ> & Q,
54 const AABB<DerivedV,DIM> & aabb,
55 Eigen::SparseMatrix<Scalar> & I);
56};
57
58#ifndef IGL_STATIC_LIBRARY
59#include "in_element.cpp"
60#endif
61
62#endif
Implementation of semi-general purpose axis-aligned bounding box hierarchy.
Definition AABB.h:31
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
void in_element(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedEle > &Ele, const Eigen::MatrixBase< DerivedQ > &Q, const AABB< DerivedV, DIM > &aabb, Eigen::PlainObjectBase< DerivedI > &I)
Determine whether each point in a list of points is in the elements of a mesh.