An upcoming change will convert cmd/mingle/minglemain.c to C++, which
includes some of these headers.
Related to #2154.
#pragma once
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct Agglomerative_Ink_Bundling_struct *Agglomerative_Ink_Bundling;
struct Agglomerative_Ink_Bundling_struct {
};
pedge* agglomerative_ink_bundling(int dim, SparseMatrix A, pedge* edges, int nneighbor, int max_recursion, double angle_param, double angle, int open_gl, int *flag);
+
+#ifdef __cplusplus
+}
+#endif
#include <sparse/SparseMatrix.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct pedge_struct {
double wgt; /* weight, telling how many original edges this edge represent. If this edge consists of multiple sections of different weights then this is a lower bound. This only applied for agglomerative bundling */
int npoints;/* number of poly points */
/* flip the polyline so that last point becomes the first, second last the second, etc*/
pedge pedge_flip(pedge e);
+
+#ifdef __cplusplus
+}
+#endif
#include <mingle/edge_bundling.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
double x, y;
} point_t;
double ink1(pedge e);
extern double ink_count;
+
+#ifdef __cplusplus
+}
+#endif
#pragma once
+#ifdef __cplusplus
+extern "C" {
+#endif
+
SparseMatrix nearest_neighbor_graph(int nPts, int num_neigbors, double *x, double eps);
+
+#ifdef __cplusplus
+}
+#endif