]> granicus.if.org Git - graphviz/commitdiff
mingle: remove 'OPENGL' guarded code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Sep 2022 01:58:52 +0000 (18:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 30 Sep 2022 04:08:54 +0000 (21:08 -0700)
Nothing in the build systems defines this.

lib/mingle/agglomerative_bundling.cpp
lib/mingle/edge_bundling.cpp

index 8081d6035b0758ca1e1c17d442bcf9adc4466a2b..b7fbf998d44754fac970704ca13e513916167073 100644 (file)
 #include <string.h>
 #include <vector>
 
-#if OPENGL
-#include <gl.h>
-extern pedge *edges_global;
-extern int nedges_global;
-#endif
-
 enum {DEBUG=0};
 
 static Agglomerative_Ink_Bundling Agglomerative_Ink_Bundling_init(SparseMatrix A, pedge *edges, int level){
index 24651d0b079799dd31e6cd9c48a4f9089e230012..46b06148136c91da001c11f582e924239ca1373c 100644 (file)
 
 #define SMALL 1.e-10
 
-#ifdef OPENGL
-#include <gl.h>
-extern pedge *edges_global;
-extern int *clusters_global;
-#endif
-
 static double norm(int n, double *x){
   double res = 0;
   int i;
@@ -514,10 +508,6 @@ static pedge* modularity_ink_bundling(int dim, int ne, SparseMatrix B, pedge* ed
   modularity_clustering(BB, TRUE, 0, use_value_for_clustering, &nclusters, &assignment, &modularity, &flag);
   SparseMatrix_delete(BB);
 
-#ifdef OPENGL
-  clusters_global = assignment;
-#endif
-
   assert(!flag);
   if (Verbose > 1) fprintf(stderr, "there are %d clusters, modularity = %f\n",nclusters, modularity);
   
@@ -549,10 +539,6 @@ static pedge* modularity_ink_bundling(int dim, int ne, SparseMatrix B, pedge* ed
        e->x[3*dim+1] = e->x[4*dim+1];
        e->npoints = 4;
       }
-#ifdef OPENGL
-      edges_global = edges;
-      drawScene();
-#endif
     }
   }
   SparseMatrix_delete(D);