Graphviz
2.41.20171026.1811
Main Page
Data Structures
Files
File List
Globals
lib
neatogen
printvis.c
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
#include <stdio.h>
15
#include <
vis.h
>
16
typedef
Ppoint_t
point
;
17
18
19
void
printvis
(
vconfig_t
* cp)
20
{
21
int
i, j;
22
int
*next, *prev;
23
point
*pts;
24
array2
arr;
25
26
next = cp->
next
;
27
prev = cp->
prev
;
28
pts = cp->
P
;
29
arr = cp->
vis
;
30
31
printf(
"this next prev point\n"
);
32
for
(i = 0; i < cp->
N
; i++)
33
printf(
"%3d %3d %3d (%f,%f)\n"
, i, next[i], prev[i],
34
(
double
) pts[i].x, (
double
) pts[i].y);
35
36
printf(
"\n\n"
);
37
38
for
(i = 0; i < cp->
N
; i++) {
39
for
(j = 0; j < cp->
N
; j++)
40
printf(
"%4.1f "
, arr[i][j]);
41
printf(
"\n"
);
42
}
43
}
vconfig_s::vis
array2 vis
Definition:
vis.h:47
vconfig_s::prev
int * prev
Definition:
vis.h:44
vconfig_s::P
Ppoint_t * P
Definition:
vis.h:41
vconfig_s::N
int N
Definition:
vis.h:40
array2
COORD ** array2
Definition:
vis.h:29
point
Definition:
geom.h:26
Pxy_t
Definition:
pathgeom.h:26
vconfig_s::next
int * next
Definition:
vis.h:43
vconfig_s
Definition:
vis.h:38
vis.h
printvis
void printvis(vconfig_t *cp)
Definition:
printvis.c:19
point
Ppoint_t point
Definition:
printvis.c:16
Generated by
1.8.5