Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jun 7, 2024
1 parent d7ab2dd commit 58897b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,12 @@ namespace Barycentric_coordinates {
}

FT compute_weights(const Point_3& query) {

// Sum of weights to normalize them later.
FT sum = FT(0);

// Vertex index.
std::size_t vi = 0;
const auto vd = vertices(m_polygon_mesh);

for (const auto& vertex : vd) {
for (auto vertex : vertices(m_polygon_mesh)) {

// Call function to calculate wp coordinates
const FT weight = compute_wp_vertex_query(vertex, query);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ void test_containers() {
CGAL::make_hexahedron(p0, p1, p2, p3, p4, p5, p6, p7, polyhedron, CGAL::parameters::do_not_triangulate_faces(false));
CGAL::make_hexahedron(p0, p1, p2, p3, p4, p5, p6, p7, surface_mesh, CGAL::parameters::do_not_triangulate_faces(false));


LCoords lcoords;
VCoords vcoords;

Expand Down

0 comments on commit 58897b2

Please sign in to comment.