libigl v2.5.0
Loading...
Searching...
No Matches
submesh_aabb_tree.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) 2016 Alec Jacobson
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//
9#ifndef IGL_COPYLET_CGAL_SUBMESH_AABB_TREE_H
10#define IGL_COPYLET_CGAL_SUBMESH_AABB_TREE_H
11
12#include "../../igl_inline.h"
13#include <Eigen/Core>
14#include <vector>
15
16#include <CGAL/AABB_tree.h>
17#include <CGAL/AABB_traits.h>
18#include <CGAL/AABB_triangle_primitive.h>
19#include <CGAL/intersections.h>
20#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
21
22namespace igl
23{
24 namespace copyleft
25 {
26 namespace cgal
27 {
37 template<
38 typename DerivedV,
39 typename DerivedF,
40 typename DerivedI,
41 typename Kernel>
43 const Eigen::PlainObjectBase<DerivedV>& V,
44 const Eigen::PlainObjectBase<DerivedF>& F,
45 const Eigen::PlainObjectBase<DerivedI>& I,
46 CGAL::AABB_tree<
47 CGAL::AABB_traits<
48 Kernel,
49 CGAL::AABB_triangle_primitive<
50 Kernel, typename std::vector<
51 typename Kernel::Triangle_3 >::iterator > > > & tree,
52 std::vector<typename Kernel::Triangle_3 > & triangles,
53 std::vector<bool> & in_I);
54 }
55 }
56}
57
58#ifndef IGL_STATIC_LIBRARY
59# include "submesh_aabb_tree.cpp"
60#endif
61
62#endif
#define IGL_INLINE
Definition igl_inline.h:15
void submesh_aabb_tree(const Eigen::PlainObjectBase< DerivedV > &V, const Eigen::PlainObjectBase< DerivedF > &F, const Eigen::PlainObjectBase< DerivedI > &I, CGAL::AABB_tree< CGAL::AABB_traits< Kernel, CGAL::AABB_triangle_primitive< Kernel, typename std::vector< typename Kernel::Triangle_3 >::iterator > > > &tree, std::vector< typename Kernel::Triangle_3 > &triangles, std::vector< bool > &in_I)
Build an AABB tree for a submesh indicated by a face selection list I of a full mesh (V,...
Definition AABB.h:17