|
@@ -1,9 +1,9 @@
|
|
// This file is part of libigl, a simple c++ geometry processing library.
|
|
// This file is part of libigl, a simple c++ geometry processing library.
|
|
-//
|
|
|
|
|
|
+//
|
|
// Copyright (C) 2014 Stefan Brugger <stefanbrugger@gmail.com>
|
|
// Copyright (C) 2014 Stefan Brugger <stefanbrugger@gmail.com>
|
|
-//
|
|
|
|
-// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
|
|
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
|
|
|
|
+//
|
|
|
|
+// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
|
|
+// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
#include "boundary_loop.h"
|
|
#include "boundary_loop.h"
|
|
#include "slice.h"
|
|
#include "slice.h"
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
template <typename DerivedF, typename Index>
|
|
template <typename DerivedF, typename Index>
|
|
IGL_INLINE void igl::boundary_loop(
|
|
IGL_INLINE void igl::boundary_loop(
|
|
- const Eigen::PlainObjectBase<DerivedF> & F,
|
|
|
|
|
|
+ const Eigen::PlainObjectBase<DerivedF> & F,
|
|
std::vector<std::vector<Index> >& L)
|
|
std::vector<std::vector<Index> >& L)
|
|
{
|
|
{
|
|
using namespace std;
|
|
using namespace std;
|
|
@@ -92,7 +92,7 @@ IGL_INLINE void igl::boundary_loop(
|
|
|
|
|
|
template <typename DerivedF, typename Index>
|
|
template <typename DerivedF, typename Index>
|
|
IGL_INLINE void igl::boundary_loop(
|
|
IGL_INLINE void igl::boundary_loop(
|
|
- const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
|
|
|
+ const Eigen::PlainObjectBase<DerivedF>& F,
|
|
std::vector<Index>& L)
|
|
std::vector<Index>& L)
|
|
{
|
|
{
|
|
using namespace Eigen;
|
|
using namespace Eigen;
|
|
@@ -113,7 +113,7 @@ IGL_INLINE void igl::boundary_loop(
|
|
maxLen = Lall[i].size();
|
|
maxLen = Lall[i].size();
|
|
idxMax = i;
|
|
idxMax = i;
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
L.resize(Lall[idxMax].size());
|
|
L.resize(Lall[idxMax].size());
|
|
for (int i = 0; i < Lall[idxMax].size(); ++i)
|
|
for (int i = 0; i < Lall[idxMax].size(); ++i)
|
|
@@ -122,7 +122,7 @@ IGL_INLINE void igl::boundary_loop(
|
|
|
|
|
|
template <typename DerivedF, typename DerivedL>
|
|
template <typename DerivedF, typename DerivedL>
|
|
IGL_INLINE void igl::boundary_loop(
|
|
IGL_INLINE void igl::boundary_loop(
|
|
- const Eigen::PlainObjectBase<DerivedF>& F,
|
|
|
|
|
|
+ const Eigen::PlainObjectBase<DerivedF>& F,
|
|
Eigen::PlainObjectBase<DerivedL>& L)
|
|
Eigen::PlainObjectBase<DerivedL>& L)
|
|
{
|
|
{
|
|
using namespace Eigen;
|
|
using namespace Eigen;
|
|
@@ -137,4 +137,4 @@ IGL_INLINE void igl::boundary_loop(
|
|
L.resize(Lvec.size());
|
|
L.resize(Lvec.size());
|
|
for (int i = 0; i < Lvec.size(); ++i)
|
|
for (int i = 0; i < Lvec.size(); ++i)
|
|
L(i) = Lvec[i];
|
|
L(i) = Lvec[i];
|
|
-}
|
|
|
|
|
|
+}
|