Skip to content

Commit 8a363be

Browse files
committed
Moved vf corner methods to general utility and added seams to seamless viewer
1 parent 6ce86c4 commit 8a363be

File tree

22 files changed

+74
-66
lines changed

22 files changed

+74
-66
lines changed

include/feature/feature/core/common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ using Holonomy::DualLoop;
1313
using Holonomy::MarkedPennerConeMetric;
1414
using Holonomy::NewtonParameters;
1515
using Holonomy::MarkedMetricParameters;
16-
typedef std::array<int, 2> VertexEdge;
1716

1817
/**
1918
* @brief Compute the square of a scalar.

include/feature/feature/core/io.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "feature/core/common.h"
4+
#include "util/vf_corners.h"
45

56
namespace Penner {
67
namespace Feature {

include/feature/feature/feature/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#pragma once
33

44
#include "feature/core/common.h"
5-
#include "feature/core/vf_corners.h"
5+
#include "util/vf_corners.h"
66

77
namespace Penner {
88
namespace Feature {

include/feature/feature/feature/features.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "feature/core/common.h"
55

66
#include "feature/util/union_find.h"
7+
#include "util/vf_corners.h"
78
#include "holonomy/holonomy/marked_penner_cone_metric.h"
89

910
namespace Penner {

include/feature/feature/interface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "feature/dirichlet/dirichlet_penner_cone_metric.h"
55
#include "feature/feature/features.h"
66
#include "holonomy/field/intrinsic_field.h"
7-
#include "feature/core/vf_corners.h"
7+
#include "util/vf_corners.h"
88
#include "holonomy/interface.h"
99

1010
namespace Penner {
Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#pragma once
22

3-
#include "feature/core/common.h"
3+
#include "util/common.h"
44

55
namespace Penner {
6-
namespace Feature {
6+
7+
typedef std::array<int, 2> VertexEdge;
78

89
/**
910
* @brief Representation of an edge as the two opposite face corners
@@ -242,19 +243,6 @@ Eigen::MatrixXd transfer_halfedge_function_to_corner(
242243
const Eigen::MatrixXi& F,
243244
const VectorX& halfedge_func);
244245

245-
/**
246-
* @brief Find the seams of the parameterization of a closed mesh.
247-
*
248-
* TODO: Extend to open meshes
249-
*
250-
* @param F: mesh faces
251-
* @param FT: mesh layout faces
252-
* @return |F|x3 mask of corners opposite seam edges
253-
*/
254-
Eigen::MatrixXi find_seams(
255-
const Eigen::MatrixXi& F,
256-
const Eigen::MatrixXi& FT);
257-
258246
/**
259247
* @brief Given a mask of corners opposite edges, generate the corresponding edge geometry.
260248
*
@@ -270,5 +258,4 @@ generate_edges(
270258
const Eigen::MatrixXi& F,
271259
const Eigen::MatrixXi& F_is_edge);
272260

273-
} // namespace Feature
274261
} // namespace Penner

include/util/util/vf_mesh.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,19 @@ std::tuple<Eigen::MatrixXd, Eigen::MatrixXi> reindex_mesh(
146146
const Eigen::MatrixXi& F,
147147
const std::vector<int>& vtx_reindex);
148148

149+
/**
150+
* @brief Find the seams of the parameterization of a closed mesh.
151+
*
152+
* TODO: Extend to open meshes
153+
*
154+
* @param F: mesh faces
155+
* @param FT: mesh layout faces
156+
* @return |F|x3 mask of corners opposite seam edges
157+
*/
158+
Eigen::MatrixXi find_seams(
159+
const Eigen::MatrixXi& F,
160+
const Eigen::MatrixXi& FT);
161+
162+
163+
149164
} // namespace Penner

src/feature/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ set(FeatureCoreSrc
66
core/union_meshes.cpp
77
core/quads.cpp
88
core/viewer.cpp
9-
core/vf_corners.cpp
109
)
1110

1211
set(DirichletSrc

src/feature/core/io.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "feature/core/io.h"
22

3-
#include "feature/core/vf_corners.h"
3+
#include "util/vf_corners.h"
4+
#include "util/vf_mesh.h"
45

56
#include <igl/remove_unreferenced.h>
67

src/feature/core/viewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "feature/core/viewer.h"
22

3-
#include "feature/core/vf_corners.h"
3+
#include "util/vf_corners.h"
44
#include "feature/feature/error.h"
55
#include "feature/feature/features.h"
66
#include "feature/feature/gluing.h"

0 commit comments

Comments
 (0)