libigl v2.5.0
Loading...
Searching...
No Matches
subdivide_segments.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 <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_COPYLEFT_CGAL_SUBDIVIDE_SEGMENTS_H
9#define IGL_COPYLEFT_CGAL_SUBDIVIDE_SEGMENTS_H
10#include "../../igl_inline.h"
11#include <Eigen/Core>
12#include <CGAL/Segment_2.h>
13#include <CGAL/Point_2.h>
14#include <vector>
15namespace igl
16{
17 namespace copyleft
18 {
19 namespace cgal
20 {
32 template <
33 typename DerivedV,
34 typename DerivedE,
35 typename Kernel,
36 typename DerivedVI,
37 typename DerivedEI,
38 typename DerivedJ,
39 typename DerivedIM>
41 const Eigen::PlainObjectBase<DerivedV> & V,
42 const Eigen::PlainObjectBase<DerivedE> & E,
43 const std::vector<std::vector<CGAL::Point_2<Kernel> > > & steiner,
44 Eigen::PlainObjectBase<DerivedVI> & VI,
45 Eigen::PlainObjectBase<DerivedEI> & EI,
46 Eigen::PlainObjectBase<DerivedJ> & J,
47 Eigen::PlainObjectBase<DerivedIM> & IM);
48 }
49 }
50}
51#ifndef IGL_STATIC_LIBRARY
52# include "subdivide_segments.cpp"
53#endif
54#endif
#define IGL_INLINE
Definition igl_inline.h:15
void subdivide_segments(const Eigen::PlainObjectBase< DerivedV > &V, const Eigen::PlainObjectBase< DerivedE > &E, const std::vector< std::vector< CGAL::Point_2< Kernel > > > &steiner, Eigen::PlainObjectBase< DerivedVI > &VI, Eigen::PlainObjectBase< DerivedEI > &EI, Eigen::PlainObjectBase< DerivedJ > &J, Eigen::PlainObjectBase< DerivedIM > &IM)
Insert steiner points to subdivide a given set of line segments.
Definition AABB.h:17