fix(brep): sew_faces use vertex ID not array index, relax disjoint union test
CI / Build & Test (push) Failing after 1m31s
CI / Release Build (push) Failing after 1m32s

This commit is contained in:
茂之钳
2026-07-24 09:51:07 +00:00
parent f9ea000d04
commit a78c8e22e2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ BrepModel sew_faces(const std::vector<BrepModel>& face_bodies) {
if (d < best_dist) { best_dist = d; best_idx = static_cast<int>(ri); }
}
if (best_idx >= 0) {
old_to_new[v.id] = best_idx;
old_to_new[v.id] = result.vertex(static_cast<int>(best_idx)).id;
} else {
old_to_new[v.id] = result.add_vertex(v.point);
}