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 <typename DerivedV, typename DerivedQ, int DIM>
30 const Eigen::MatrixBase<DerivedV> & V,
31 const Eigen::MatrixXi & Ele,
32 const Eigen::MatrixBase<DerivedQ> & Q,
33 const AABB<DerivedV,DIM> & aabb,
34 Eigen::VectorXi & I);
39 template <typename DerivedV, typename DerivedQ, int DIM, typename Scalar>
41 const Eigen::MatrixBase<DerivedV> & V,
42 const Eigen::MatrixXi & Ele,
43 const Eigen::MatrixBase<DerivedQ> & Q,
44 const AABB<DerivedV,DIM> & aabb,
45 Eigen::SparseMatrix<Scalar> & I);
46};
47
48#ifndef IGL_STATIC_LIBRARY
49#include "in_element.cpp"
50#endif
51
52#endif
Implementation of semi-general purpose axis-aligned bounding box hierarchy.
Definition AABB.h:30
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void in_element(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixXi &Ele, const Eigen::MatrixBase< DerivedQ > &Q, const AABB< DerivedV, DIM > &aabb, Eigen::VectorXi &I)
Determine whether each point in a list of points is in the elements of a mesh.