diff options
-rw-r--r-- | rbmp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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<double, std::exponential_distribution>(1); - edges[i].halfedges[0].oldX = r.variate<double, std::normal_distribution>(0, 1); - edges[i].halfedges[1].oldX = r.variate<double, std::normal_distribution>(0, 1); } } |