libigl v2.5.0
Loading...
Searching...
No Matches
polygons_to_triangles.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) 2020 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_POLYGONS_TO_TRIANGLES_H
9#define IGL_POLYGONS_TO_TRIANGLES_H
10
11#include "../igl_inline.h"
12#include <Eigen/Core>
13#include <vector>
14
15namespace igl
16{
17 namespace predicates
18 {
31 template <
32 typename DerivedV,
33 typename DerivedI,
34 typename DerivedC,
35 typename DerivedF,
36 typename DerivedJ>
38 const Eigen::MatrixBase<DerivedV> & V,
39 const Eigen::MatrixBase<DerivedI> & I,
40 const Eigen::MatrixBase<DerivedC> & C,
41 Eigen::PlainObjectBase<DerivedF> & F,
42 Eigen::PlainObjectBase<DerivedJ> & J);
43 }
44}
45
46#ifndef IGL_STATIC_LIBRARY
47# include "polygons_to_triangles.cpp"
48#endif
49
50#endif
#define IGL_INLINE
Definition igl_inline.h:15
void polygons_to_triangles(const Eigen::MatrixBase< DerivedV > &V, const Eigen::MatrixBase< DerivedI > &I, const Eigen::MatrixBase< DerivedC > &C, Eigen::PlainObjectBase< DerivedF > &F, Eigen::PlainObjectBase< DerivedJ > &J)
Given a polygon mesh, trivially triangulate each polygon with a fan.
Definition AABB.h:17