@@ -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 (
0 commit comments