chiark
/
gitweb
/
~ian
/
moebius2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix up bgl.cpp for topology
[moebius2.git]
/
bgl.cpp
diff --git
a/bgl.cpp
b/bgl.cpp
index cbe45b52d798865b2ad1ce0b7ad09218cd689ed7..193a75a97fac5eac1b901aa2afcb7ff511a572cf 100644
(file)
--- a/
bgl.cpp
+++ b/
bgl.cpp
@@
-190,7
+190,7
@@
double graph_layout_cost(const Vertices v, const double vertex_areas[N]) {
*/
static const double d2_epsilon= 1e-6;
- double edge_weights[
N*V6
], vertex_distances[N], total_cost=0;
+ double edge_weights[
V6<<ESHIFT
], vertex_distances[N], total_cost=0;
int v1,v2,e,f;
FOR_VERTEX(v1)