fixed bug in perimeter computation

This commit is contained in:
Luigi Malomo 2019-12-20 17:21:38 +01:00
parent 1f75de3df3
commit 1d082b7fbe
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ public:
for (int k=0; k<f.VN(); k++) for (int k=0; k<f.VN(); k++)
if (face::IsBorder(f, k)) if (face::IsBorder(f, k))
{ {
sum += Distance(f.cP(k), f.cP(1)); sum += Distance(f.cP0(k), f.cP1(k));
} }
}); });
return sum; return sum;