Skip to content

Commit 159cdd4

Browse files
committed
Removed deprecated weight functions
1 parent 5c15e83 commit 159cdd4

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

src/optimization/energy_weights.cpp

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -136,51 +136,51 @@ namespace CurvatureMetric
136136
}
137137

138138
// Compute the cone adjacent faces of a closed mesh
139-
[[deprecated]]
140-
void compute_cone_faces(
141-
const Mesh<Scalar> &m,
142-
const ReductionMaps &reduction_maps,
143-
std::vector<int> &cone_faces)
144-
{
145-
// Compute the cone vertices
146-
std::vector<int> cone_vertices;
147-
compute_cone_vertices(m, reduction_maps, cone_vertices);
148-
149-
// Get boolean mask for the cone vertices
150-
std::vector<bool> is_cone_vertex;
151-
int num_vertices = m.n_ind_vertices();
152-
convert_index_vector_to_boolean_array(cone_vertices, num_vertices, is_cone_vertex);
153-
154-
// Compute the cone faces by iterating over the halfedges
155-
cone_faces.clear();
156-
int num_halfedges = m.n_halfedges();
157-
for (int h = 0; h < num_halfedges; ++h)
158-
{
159-
int v = m.v_rep[m.to[h]];
160-
if (is_cone_vertex[v])
161-
{
162-
int f = m.f[h];
163-
cone_faces.push_back(f);
164-
}
165-
}
166-
}
167-
168-
[[deprecated]] void
169-
compute_cone_face_weights(
170-
const Mesh<Scalar> &m,
171-
const ReductionMaps &reduction_maps,
172-
Scalar cone_weight,
173-
std::vector<Scalar> &face_weights)
174-
{
175-
std::vector<int> cone_faces;
176-
compute_cone_faces(m, reduction_maps, cone_faces);
177-
spdlog::trace("Weighting {} faces with {}", cone_faces.size(), cone_weight);
178-
face_weights = std::vector<Scalar>(m.h.size(), 1.0);
179-
for (size_t i = 0; i < cone_faces.size(); ++i)
180-
{
181-
face_weights[cone_faces[i]] = cone_weight;
182-
}
183-
}
139+
//[[deprecated]]
140+
//void compute_cone_faces(
141+
// const Mesh<Scalar> &m,
142+
// const ReductionMaps &reduction_maps,
143+
// std::vector<int> &cone_faces)
144+
//{
145+
// // Compute the cone vertices
146+
// std::vector<int> cone_vertices;
147+
// compute_cone_vertices(m, reduction_maps, cone_vertices);
148+
149+
// // Get boolean mask for the cone vertices
150+
// std::vector<bool> is_cone_vertex;
151+
// int num_vertices = m.n_ind_vertices();
152+
// convert_index_vector_to_boolean_array(cone_vertices, num_vertices, is_cone_vertex);
153+
154+
// // Compute the cone faces by iterating over the halfedges
155+
// cone_faces.clear();
156+
// int num_halfedges = m.n_halfedges();
157+
// for (int h = 0; h < num_halfedges; ++h)
158+
// {
159+
// int v = m.v_rep[m.to[h]];
160+
// if (is_cone_vertex[v])
161+
// {
162+
// int f = m.f[h];
163+
// cone_faces.push_back(f);
164+
// }
165+
// }
166+
//}
167+
168+
//[[deprecated]] void
169+
//compute_cone_face_weights(
170+
// const Mesh<Scalar> &m,
171+
// const ReductionMaps &reduction_maps,
172+
// Scalar cone_weight,
173+
// std::vector<Scalar> &face_weights)
174+
//{
175+
// std::vector<int> cone_faces;
176+
// compute_cone_faces(m, reduction_maps, cone_faces);
177+
// spdlog::trace("Weighting {} faces with {}", cone_faces.size(), cone_weight);
178+
// face_weights = std::vector<Scalar>(m.h.size(), 1.0);
179+
// for (size_t i = 0; i < cone_faces.size(); ++i)
180+
// {
181+
// face_weights[cone_faces[i]] = cone_weight;
182+
// }
183+
//}
184184

185185
void
186186
compute_boundary_face_weights(

src/optimization/energy_weights.hh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ namespace CurvatureMetric
4444
/// @param[in] reduction_maps: reduction maps
4545
/// @param[in] cone_weight: weight to give cone adjacent faces
4646
/// @param[out] face_weights: weights for faces
47-
[[deprecated]] void
48-
compute_cone_face_weights(
49-
const Mesh<Scalar> &m,
50-
const ReductionMaps &reduction_maps,
51-
Scalar cone_weight,
52-
std::vector<Scalar> &face_weights);
47+
//[[deprecated]] void
48+
//compute_cone_face_weights(
49+
// const Mesh<Scalar> &m,
50+
// const ReductionMaps &reduction_maps,
51+
// Scalar cone_weight,
52+
// std::vector<Scalar> &face_weights);
5353

5454
/// Compute a vector of weights for faces adjacent to the boundary.
5555
///

0 commit comments

Comments
 (0)