Skip to content

Commit

Permalink
leaves is not used in post process
Browse files Browse the repository at this point in the history
  • Loading branch information
unageek committed Sep 7, 2024
1 parent 0c75087 commit e192606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/kigumi/Corefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class Corefine {
const auto& pa = points_.at(a);
const auto& pb = points_.at(b);
const auto& pc = points_.at(c);
left_triangulations_.emplace(fh,
Triangulation{Triangle_region::LEFT_FACE, pa, pb, pc, a, b, c});
left_triangulations_.emplace(
fh, Triangulation{Triangle_region::LEFT_FACE, pa, pb, pc, a, b, c});

auto last = std::upper_bound(first, infos.end(), *first, left_fh_less);
ranges.emplace_back(first, last);
Expand Down
11 changes: 4 additions & 7 deletions include/kigumi/Find_possibly_intersecting_faces.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ class Find_possibly_intersecting_faces {
const auto& a_tree = a.aabb_tree();

parallel_do(
b.faces_begin(), b.faces_end(),
std::pair<std::vector<Face_handle_pair>, std::vector<const Leaf*>>{},
[&](auto b_fh, auto& local_state) {
auto& [local_pairs, leaves] = local_state;
b.faces_begin(), b.faces_end(), std::vector<Face_handle_pair>{},
[&](auto b_fh, auto& local_pairs) {
thread_local std::vector<const Leaf*> leaves;

if (b_face_tags.at(b_fh.i) != Face_tag::UNKNOWN) {
return;
Expand All @@ -57,9 +56,7 @@ class Find_possibly_intersecting_faces {
}
}
},
[&](auto& local_state) {
auto& [local_pairs, leaves] = local_state;

[&](auto& local_pairs) {
if (pairs.empty()) {
pairs = std::move(local_pairs);
} else {
Expand Down

0 comments on commit e192606

Please sign in to comment.