init normal with 3 scalars instead of 1

This commit is contained in:
Qiaozhi Lei
2023-08-22 10:35:29 +01:00
parent b7b0027d4b
commit 21b4bde190

View File

@@ -429,7 +429,7 @@ typename PolyMeshT<Kernel>::Normal
PolyMeshT<Kernel>:: PolyMeshT<Kernel>::
calc_normal(EdgeHandle _eh) const calc_normal(EdgeHandle _eh) const
{ {
Normal n(0); Normal n(0, 0, 0);
for (int i = 0; i < 2; ++i) for (int i = 0; i < 2; ++i)
{ {
const auto heh = this->halfedge_handle(_eh, i); const auto heh = this->halfedge_handle(_eh, i);