-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Amir Vaxman
committed
Apr 6, 2021
1 parent
1a3020d
commit 451bcfb
Showing
4 changed files
with
81,757 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This file is part of libhedra, a library for polyhedral mesh processing | ||
// | ||
// Copyright (C) 2020 Amir Vaxman <[email protected]> | ||
// | ||
// 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/. | ||
#ifndef HEDRA_REORIENT_H | ||
#define HEDRA_REORIENT_H | ||
#include <igl/igl_inline.h> | ||
#include <Eigen/Core> | ||
#include <string> | ||
#include <vector> | ||
#include <cstdio> | ||
|
||
namespace hedra | ||
{ | ||
// reorients mesh consistently | ||
IGL_INLINE void reorient(const Eigen::VectorXi& D, | ||
Eigen::MatrixXi& F | ||
int seedFace = 0) | ||
{ | ||
|
||
VectorXi visited=VectorXi::Zero(D.size()); | ||
std::queue<int> | ||
while ! | ||
vertexValences.conservativeResize(EV.maxCoeff()+1); | ||
vertexValences.setZero(); | ||
for (int i=0;i<EV.rows();i++){ | ||
vertexValences(EV(i,0))++; | ||
vertexValences(EV(i,1))++; | ||
} | ||
} | ||
} | ||
|
||
|
||
#endif | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.