From 2d833ad2bf32632a2230ce1ebe28dc8207898ad7 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 16 Sep 2022 17:34:09 +0200 Subject: Returned to initializing to zero. --- rbmp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rbmp.cpp b/rbmp.cpp index 1c30528..c34dce4 100644 --- a/rbmp.cpp +++ b/rbmp.cpp @@ -34,7 +34,7 @@ public: double oldX; double X; - HalfEdge(const Edge& e) : edge(e) {} + HalfEdge(const Edge& e) : edge(e), oldX(0) {} void setVertices(Vertex& vt, Vertex& vh) { tail = &vt; head = &vh; @@ -85,8 +85,6 @@ public: Vertex& blueVertex = vertices[M + (i % (2 * n)) / 2 + n * (((i + 2 * n) / 4) / n)]; edges[i].setVertices(redVertex, blueVertex); edges[i].weight = r.variate(1); - edges[i].halfedges[0].oldX = r.variate(0, 1); - edges[i].halfedges[1].oldX = r.variate(0, 1); } } -- cgit v1.2.3-70-g09d2