mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-14 04:35:55 +08:00
Merge pull request #347 from google/spec_fix_topology_l
Spec: Fix TOPOLOGY_L edgebreaker case.
This commit is contained in:
commit
db40271c13
@ -245,13 +245,13 @@ void NewActiveCornerReached(new_corner, symbol_id) {
|
|||||||
active_corner_stack.back() = new_corner;
|
active_corner_stack.back() = new_corner;
|
||||||
}
|
}
|
||||||
check_topology_split = true;
|
check_topology_split = true;
|
||||||
vert = CornerToVert(curr_att_dec, Previous(corner_a));
|
vert = CornerToVert(curr_att_dec, Next(corner_a));
|
||||||
next = CornerToVert(curr_att_dec, Next(corner_a));
|
next = ++last_vert_added;
|
||||||
prev = ++last_vert_added;
|
prev = CornerToVert(curr_att_dec, Previous(corner_a));
|
||||||
if (edgebreaker_traversal_type == VALENCE_EDGEBREAKER) {
|
if (edgebreaker_traversal_type == VALENCE_EDGEBREAKER) {
|
||||||
vertex_valences_[vert] += 1;
|
vertex_valences_[vert] += 1;
|
||||||
vertex_valences_[next] += 1;
|
vertex_valences_[next] += 2;
|
||||||
vertex_valences_[prev] += 2;
|
vertex_valences_[prev] += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
face_to_vertex[0].push_back(vert);
|
face_to_vertex[0].push_back(vert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user