libigl v2.5.0
Loading...
Searching...
No Matches
ear_clipping.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) 2019 Hanxiao Shen <hanxiao@cs.nyu.edu>
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_PREDICATES_EAR_CLIPPING_H
10#define IGL_PREDICATES_EAR_CLIPPING_H
11
12#include <Eigen/Core>
13#include "../igl_inline.h"
14
15namespace igl
16{
17 namespace predicates
18 {
36 template <
37 typename DerivedP,
38 typename DerivedRT,
39 typename DerivedF,
40 typename DerivedI>
42 const Eigen::MatrixBase<DerivedP>& P,
43 const Eigen::MatrixBase<DerivedRT>& RT,
44 Eigen::PlainObjectBase<DerivedF>& eF,
45 Eigen::PlainObjectBase<DerivedI>& I);
50 template <typename DerivedP, typename DerivedF>
52 const Eigen::MatrixBase<DerivedP>& P,
53 Eigen::PlainObjectBase<DerivedF>& eF);
54
55 }
56}
57
58#ifndef IGL_STATIC_LIBRARY
59# include "ear_clipping.cpp"
60#endif
61
62
63#endif
#define IGL_INLINE
Definition igl_inline.h:15
void ear_clipping(const Eigen::MatrixBase< DerivedP > &P, const Eigen::MatrixBase< DerivedRT > &RT, Eigen::PlainObjectBase< DerivedF > &eF, Eigen::PlainObjectBase< DerivedI > &I)
Implementation of ear clipping triangulation algorithm for a 2D polygon.
Definition AABB.h:17