Skip to content

Commit 7126bb3

Browse files
authored
Merge pull request #123 from christianachilleszeisscom/patch-1
bugfix border condition for texturing holes
2 parents 38eca58 + af3c884 commit 7126bb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/tex/generate_texture_patches.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ bool fill_hole(std::vector<std::size_t> const & hole, UniGraph const & graph,
377377
by[idx[j]] = 0.0f;
378378
for (it = weights.begin(); it != weights.end(); ++it) {
379379
if (is_border[it->first]) {
380-
std::size_t border_vertex_id = border[idx[it->first]];
381-
math::Vec2f projection = projections[g2l[border_vertex_id]];
380+
math::Vec2f projection = projections[it->first];
382381
bx[idx[j]] += projection[0] * it->second;
383382
by[idx[j]] += projection[1] * it->second;
384383
} else {

0 commit comments

Comments
 (0)