Graphviz  2.41.20170921.2350
delaunay.h
Go to the documentation of this file.
1 /* $Id$ $Revision$ */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 #ifndef DELAUNAY_H
15 #define DELAUNAY_H
16 
17 #include "sparsegraph.h"
18 
19 typedef struct {
20  int nedges; /* no. of edges in triangulation */
21  int* edges; /* 2*nsegs indices of points */
22  int nfaces; /* no. of faces in triangulation */
23  int* faces; /* 3*nfaces indices of points */
24  int* neigh; /* 3*nfaces indices of neighbor triangles */
25 } surface_t;
26 
27 v_data *delaunay_triangulation(double *x, double *y, int n);
28 
29 int *delaunay_tri (double *x, double *y, int n, int* nedges);
30 
31 int *get_triangles (double *x, int n, int* ntris);
32 
33 v_data *UG_graph(double *x, double *y, int n, int accurate_computation);
34 
35 surface_t* mkSurface (double *x, double *y, int n, int* segs, int nsegs);
36 
37 void freeSurface (surface_t* s);
38 
39 #endif
v_data * delaunay_triangulation(double *x, double *y, int n)
Definition: delaunay.c:749
int * faces
Definition: delaunay.h:23
int * neigh
Definition: delaunay.h:24
int nfaces
Definition: delaunay.h:22
Definition: grammar.c:79
int * delaunay_tri(double *x, double *y, int n, int *nedges)
Definition: delaunay.c:754
int * get_triangles(double *x, int n, int *tris)
Definition: delaunay.c:744
void freeSurface(surface_t *s)
Definition: delaunay.c:766
surface_t * mkSurface(double *x, double *y, int n, int *segs, int nsegs)
Definition: delaunay.c:760
int nedges
Definition: delaunay.h:20
int * edges
Definition: delaunay.h:21
v_data * UG_graph(double *x, double *y, int n, int accurate_computation)
Definition: delaunay.c:784