diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2019-08-26 19:34:11 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2019-09-13 11:36:05 +0300 |
commit | 57e55906f04a48a951fbbcfd7c197eef35ad4387 (patch) | |
tree | a4246ffdd501027a37d7329dca05de4d9ed19b15 /extern/quadriflow/src/dedge.hpp | |
parent | 1c44d08a69eb3e66c7f942d748f549d6b8ca138f (diff) |
Add QuadriFlow remesher
Diffstat (limited to 'extern/quadriflow/src/dedge.hpp')
-rw-r--r-- | extern/quadriflow/src/dedge.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/extern/quadriflow/src/dedge.hpp b/extern/quadriflow/src/dedge.hpp new file mode 100644 index 00000000000..e8ee372f012 --- /dev/null +++ b/extern/quadriflow/src/dedge.hpp @@ -0,0 +1,25 @@ +#ifndef DEDGE_H_ +#define DEDGE_H_ + +#include <Eigen/Core> +#include <Eigen/Dense> +#include <vector> + +namespace qflow { + +using namespace Eigen; + +inline int dedge_prev_3(int e) { return (e % 3 == 0) ? e + 2 : e - 1; } +inline int dedge_next_3(int e) { return (e % 3 == 2) ? e - 2 : e + 1; } + +bool compute_direct_graph(MatrixXd& V, MatrixXi& F, VectorXi& V2E, + VectorXi& E2E, VectorXi& boundary, VectorXi& nonManifold); + +void compute_direct_graph_quad(std::vector<Vector3d>& V, std::vector<Vector4i>& F, std::vector<int>& V2E, + std::vector<int>& E2E, VectorXi& boundary, VectorXi& nonManifold); + +void remove_nonmanifold(std::vector<Vector4i> &F, std::vector<Vector3d> &V); + +} // namespace qflow + +#endif |