arb:: fixed compute_vertex_valence

This commit is contained in:
Zeno Rogue 2021-07-29 12:03:20 +02:00
parent ae33c14337
commit bdfe78eaf5
1 changed files with 4 additions and 1 deletions

View File

@ -340,7 +340,10 @@ EX void compute_vertex_valence() {
int qty = 0;
connection_t at = {i, k, false};
do {
total += shs[at.sid].angles[at.eid];
ld a = shs[at.sid].angles[at.eid];
while(a < 0) a += 360 * degree;
while(a > 360 * degree) a -= 360 * degree;
total += a;
qty++;
at.eid++;