99#include < Eigen/Sparse>
1010
1111#include " optimization/penner_optimization_interface.h"
12+ #include " optimization/core/common.h"
1213#include " optimization/core/cone_metric.h"
13- #include " optimization/core /vector.h"
14+ #include " util /vector.h"
1415
15- namespace PennerHolonomy {
16+ namespace Penner {
17+ namespace Holonomy {
1618
1719// Typedefs
18- using CurvatureMetric::DifferentiableConeMetric;
19- using CurvatureMetric::float_equal;
20- using CurvatureMetric::MatrixX;
21- using CurvatureMetric::max;
22- using CurvatureMetric::Mesh;
23- using CurvatureMetric::OverlayMesh;
24- using CurvatureMetric::Scalar;
25- using CurvatureMetric::swap;
26- using CurvatureMetric::T;
27- using CurvatureMetric::VectorX;
28- using std::isnan;
29- using std::min;
30- typedef Eigen::Matrix<Scalar, 2 , 1 > Vector2;
31- typedef Eigen::Matrix<Scalar, 3 , 1 > Vector3;
32- typedef Eigen::Matrix<Scalar, 2 , 2 > Matrix2x2;
20+ using Optimization::DifferentiableConeMetric;
3321typedef Eigen::Matrix<int , Eigen::Dynamic, 2 > RowVectors2i;
3422
3523
@@ -72,23 +60,6 @@ int compute_euler_characteristic(const Mesh<Scalar>& m);
7260 */
7361int compute_genus (const Mesh<Scalar>& m);
7462
75- /* *
76- * @brief Compute a rotation matrix corresponding to a given angle
77- *
78- * @param theta: rotation angle
79- * @return rotation angle
80- */
81- Matrix2x2 compute_rotation (Scalar theta);
82-
83- /* *
84- * @brief Solve a linear system with matrix valued right hand side
85- *
86- * @param A: matrix to invert
87- * @param B: right hand side matrix
88- * @return solution to AX = B
89- */
90- MatrixX solve_linear_system (const MatrixX& A, const MatrixX& B);
91-
9263/* *
9364 * @brief Compute the map from vertex-vertex edges to primal mesh halfedges
9465 *
@@ -99,4 +70,5 @@ MatrixX solve_linear_system(const MatrixX& A, const MatrixX& B);
9970 */
10071Eigen::SparseMatrix<int > compute_vv_to_halfedge_matrix (const Mesh<Scalar>& m);
10172
102- } // namespace PennerHolonomy
73+ } // namespace Holonomy
74+ } // namespace Penner
0 commit comments