summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbmp.cpp4
1 files changed, 1 insertions, 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<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);
}
}