Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-08-26 19:34:11 +0300
committerSebastian Parborg <darkdefende@gmail.com>2019-09-13 11:36:05 +0300
commit57e55906f04a48a951fbbcfd7c197eef35ad4387 (patch)
treea4246ffdd501027a37d7329dca05de4d9ed19b15 /extern/quadriflow/src/localsat.hpp
parent1c44d08a69eb3e66c7f942d748f549d6b8ca138f (diff)
Add QuadriFlow remesher
Diffstat (limited to 'extern/quadriflow/src/localsat.hpp')
-rw-r--r--extern/quadriflow/src/localsat.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/extern/quadriflow/src/localsat.hpp b/extern/quadriflow/src/localsat.hpp
new file mode 100644
index 00000000000..af952320ebb
--- /dev/null
+++ b/extern/quadriflow/src/localsat.hpp
@@ -0,0 +1,31 @@
+#ifndef __LOCAL_SAT_H
+#define __LOCAL_SAT_H
+
+#include <Eigen/Core>
+#include <vector>
+
+namespace qflow {
+
+using namespace Eigen;
+
+enum class SolverStatus {
+ Sat,
+ Unsat,
+ Timeout,
+};
+
+SolverStatus SolveSatProblem(int n_variable, std::vector<int> &value,
+ const std::vector<bool> flexible, // NOQA
+ const std::vector<Vector3i> &variable_eq,
+ const std::vector<Vector3i> &constant_eq,
+ const std::vector<Vector4i> &variable_ge,
+ const std::vector<Vector2i> &constant_ge,
+ int timeout = 8);
+
+void ExportLocalSat(std::vector<Vector2i> &edge_diff, const std::vector<Vector3i> &face_edgeIds,
+ const std::vector<Vector3i> &face_edgeOrients, const MatrixXi &F,
+ const VectorXi &V2E, const VectorXi &E2E);
+
+} // namespace qflow
+
+#endif