Skip to content

Commit 86c7b12

Browse files
committed
Fixed layout bug
1 parent 3c14e2a commit 86c7b12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/parameterization/layout.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ std::tuple<std::vector<Scalar>, std::vector<Scalar>, std::vector<bool>> compute_
486486
int h = 0;
487487
if (start_h == -1) {
488488
for (int i = 0; i < m.n_halfedges(); i++) {
489+
if (m.type[i] == 0) break;
489490
if (m.type[i] == 1 && m.type[m.opp[i]] == 2) {
490491
h = m.n[m.n[i]];
491492
spdlog::debug("Using edge {} as layout start", h);

0 commit comments

Comments
 (0)