libigl v2.5.0
Loading...
Searching...
No Matches
sort_vectors_ccw.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) 2015 Olga Diamanti <olga.diam@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
9#ifndef IGL_SORT_VECTORS_CCW
10#define IGL_SORT_VECTORS_CCW
11#include "igl_inline.h"
12
13#include <Eigen/Core>
14
15namespace igl {
29 template <typename DerivedS, typename DerivedI>
31 const Eigen::PlainObjectBase<DerivedS>& P,
32 const Eigen::PlainObjectBase<DerivedS>& N,
33 Eigen::PlainObjectBase<DerivedI> &order,
34 Eigen::PlainObjectBase<DerivedS> &sorted,
35 Eigen::PlainObjectBase<DerivedI> &inv_order);
37 template <typename DerivedS, typename DerivedI>
39 const Eigen::PlainObjectBase<DerivedS>& P,
40 const Eigen::PlainObjectBase<DerivedS>& N,
41 Eigen::PlainObjectBase<DerivedI> &order,
42 Eigen::PlainObjectBase<DerivedS> &sorted);
44 template <typename DerivedS, typename DerivedI>
46 const Eigen::PlainObjectBase<DerivedS>& P,
47 const Eigen::PlainObjectBase<DerivedS>& N,
48 Eigen::PlainObjectBase<DerivedI> &order,
49 Eigen::PlainObjectBase<DerivedI> &inv_order);
51 template <typename DerivedS, typename DerivedI>
53 const Eigen::PlainObjectBase<DerivedS>& P,
54 const Eigen::PlainObjectBase<DerivedS>& N,
55 Eigen::PlainObjectBase<DerivedI> &order);
56
57};
58
59
60#ifndef IGL_STATIC_LIBRARY
61#include "sort_vectors_ccw.cpp"
62#endif
63
64
65#endif /* defined(IGL_FIELD_LOCAL_GLOBAL_CONVERSIONS) */
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void sort_vectors_ccw(const Eigen::PlainObjectBase< DerivedS > &P, const Eigen::PlainObjectBase< DerivedS > &N, Eigen::PlainObjectBase< DerivedI > &order, Eigen::PlainObjectBase< DerivedS > &sorted, Eigen::PlainObjectBase< DerivedI > &inv_order)
Sorts a set of N coplanar vectors in a ccw order, and returns their order.