libigl v2.5.0
Loading...
Searching...
No Matches
projected_cdt.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#ifndef IGL_COPYLEFT_CGAL_PROJECTED_CDT_H
9#define IGL_COPYLEFT_CGAL_PROJECTED_CDT_H
10#include "../../igl_inline.h"
11#include <Eigen/Core>
12#include <CGAL/Plane_3.h>
13#include <CGAL/Point_3.h>
14#include <CGAL/Object.h>
15#include <vector>
16namespace igl
17{
18 namespace copyleft
19 {
20 namespace cgal
21 {
35 template <typename Kernel, typename Index>
37 const std::vector<CGAL::Object> & objects,
38 const CGAL::Plane_3<Kernel> & P,
39 std::vector<CGAL::Point_3<Kernel> >& vertices,
40 std::vector<std::vector<Index> >& faces);
47 template < typename Kernel, typename DerivedV, typename DerivedF>
49 const std::vector<CGAL::Object> & objects,
50 const CGAL::Plane_3<Kernel> & P,
51 Eigen::PlainObjectBase<DerivedV> & V,
52 Eigen::PlainObjectBase<DerivedF> & F);
53 }
54 }
55}
56
57#ifndef IGL_STATIC_LIBRARY
58# include "projected_cdt.cpp"
59#endif
60#endif
#define IGL_INLINE
Definition igl_inline.h:15
void projected_cdt(const std::vector< CGAL::Object > &objects, const CGAL::Plane_3< Kernel > &P, std::vector< CGAL::Point_3< Kernel > > &vertices, std::vector< std::vector< Index > > &faces)
Given a list of objects (e.g., resulting from intersecting a triangle with many other triangles),...
Definition AABB.h:17