io_r.h
Go to the documentation of this file.
1 /*<html><pre> -<a href="qh-io_r.htm"
2  >-------------------------------</a><a name="TOP">-</a>
3 
4  io_r.h
5  declarations of Input/Output functions
6 
7  see README, libqhull_r.h and io_r.c
8 
9  Copyright (c) 1993-2015 The Geometry Center.
10  $Id: //main/2015/qhull/src/libqhull_r/io_r.h#2 $$Change: 2042 $
11  $DateTime: 2016/01/03 13:26:21 $$Author: bbarber $
12 */
13 
14 #ifndef qhDEFio
15 #define qhDEFio 1
16 
17 #include "libqhull_r.h"
18 
19 /*============ constants and flags ==================*/
20 
21 /*-<a href="qh-io_r.htm#TOC"
22  >--------------------------------</a><a name="qh_MAXfirst">-</a>
23 
24  qh_MAXfirst
25  maximum length of first two lines of stdin
26 */
27 #define qh_MAXfirst 200
28 
29 /*-<a href="qh-io_r.htm#TOC"
30  >--------------------------------</a><a name="qh_MINradius">-</a>
31 
32  qh_MINradius
33  min radius for Gp and Gv, fraction of maxcoord
34 */
35 #define qh_MINradius 0.02
36 
37 /*-<a href="qh-io_r.htm#TOC"
38  >--------------------------------</a><a name="qh_GEOMepsilon">-</a>
39 
40  qh_GEOMepsilon
41  adjust outer planes for 'lines closer' and geomview roundoff.
42  This prevents bleed through.
43 */
44 #define qh_GEOMepsilon 2e-3
45 
46 /*-<a href="qh-io_r.htm#TOC"
47  >--------------------------------</a><a name="qh_WHITESPACE">-</a>
48 
49  qh_WHITESPACE
50  possible values of white space
51 */
52 #define qh_WHITESPACE " \n\t\v\r\f"
53 
54 
55 /*-<a href="qh-io_r.htm#TOC"
56  >--------------------------------</a><a name="RIDGE">-</a>
57 
58  qh_RIDGE
59  to select which ridges to print in qh_eachvoronoi
60 */
61 typedef enum
62 {
64 }
65 qh_RIDGE;
66 
67 /*-<a href="qh-io_r.htm#TOC"
68  >--------------------------------</a><a name="printvridgeT">-</a>
69 
70  printvridgeT
71  prints results of qh_printvdiagram
72 
73  see:
74  <a href="io_r.c#printvridge">qh_printvridge</a> for an example
75 */
76 typedef void (*printvridgeT)(qhT *qh, FILE *fp, vertexT *vertex, vertexT *vertexA, setT *centers, boolT unbounded);
77 
78 /*============== -prototypes in alphabetical order =========*/
79 
80 void qh_dfacet(qhT *qh, unsigned id);
81 void qh_dvertex(qhT *qh, unsigned id);
82 int qh_compare_facetarea(const void *p1, const void *p2);
83 int qh_compare_facetmerge(const void *p1, const void *p2);
84 int qh_compare_facetvisit(const void *p1, const void *p2);
85 /* int qh_compare_vertexpoint(const void *p1, const void *p2); Not useable since it depends on qh */
86 void qh_copyfilename(qhT *qh, char *filename, int size, const char* source, int length);
87 void qh_countfacets(qhT *qh, facetT *facetlist, setT *facets, boolT printall,
88  int *numfacetsp, int *numsimplicialp, int *totneighborsp,
89  int *numridgesp, int *numcoplanarsp, int *numnumtricoplanarsp);
90 pointT *qh_detvnorm(qhT *qh, vertexT *vertex, vertexT *vertexA, setT *centers, realT *offsetp);
91 setT *qh_detvridge(qhT *qh, vertexT *vertex);
92 setT *qh_detvridge3(qhT *qh, vertexT *atvertex, vertexT *vertex);
93 int qh_eachvoronoi(qhT *qh, FILE *fp, printvridgeT printvridge, vertexT *atvertex, boolT visitall, qh_RIDGE innerouter, boolT inorder);
94 int qh_eachvoronoi_all(qhT *qh, FILE *fp, printvridgeT printvridge, boolT isUpper, qh_RIDGE innerouter, boolT inorder);
95 void qh_facet2point(qhT *qh, facetT *facet, pointT **point0, pointT **point1, realT *mindist);
96 setT *qh_facetvertices(qhT *qh, facetT *facetlist, setT *facets, boolT allfacets);
97 void qh_geomplanes(qhT *qh, facetT *facet, realT *outerplane, realT *innerplane);
98 void qh_markkeep(qhT *qh, facetT *facetlist);
99 setT *qh_markvoronoi(qhT *qh, facetT *facetlist, setT *facets, boolT printall, boolT *isLowerp, int *numcentersp);
100 void qh_order_vertexneighbors(qhT *qh, vertexT *vertex);
101 void qh_prepare_output(qhT *qh);
102 void qh_printafacet(qhT *qh, FILE *fp, qh_PRINT format, facetT *facet, boolT printall);
103 void qh_printbegin(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall);
104 void qh_printcenter(qhT *qh, FILE *fp, qh_PRINT format, const char *string, facetT *facet);
105 void qh_printcentrum(qhT *qh, FILE *fp, facetT *facet, realT radius);
106 void qh_printend(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall);
107 void qh_printend4geom(qhT *qh, FILE *fp, facetT *facet, int *num, boolT printall);
108 void qh_printextremes(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall);
109 void qh_printextremes_2d(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall);
110 void qh_printextremes_d(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall);
111 void qh_printfacet(qhT *qh, FILE *fp, facetT *facet);
112 void qh_printfacet2math(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format, int notfirst);
113 void qh_printfacet2geom(qhT *qh, FILE *fp, facetT *facet, realT color[3]);
114 void qh_printfacet2geom_points(qhT *qh, FILE *fp, pointT *point1, pointT *point2,
115  facetT *facet, realT offset, realT color[3]);
116 void qh_printfacet3math(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format, int notfirst);
117 void qh_printfacet3geom_nonsimplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3]);
118 void qh_printfacet3geom_points(qhT *qh, FILE *fp, setT *points, facetT *facet, realT offset, realT color[3]);
119 void qh_printfacet3geom_simplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3]);
120 void qh_printfacet3vertex(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format);
121 void qh_printfacet4geom_nonsimplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3]);
122 void qh_printfacet4geom_simplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3]);
123 void qh_printfacetNvertex_nonsimplicial(qhT *qh, FILE *fp, facetT *facet, int id, qh_PRINT format);
124 void qh_printfacetNvertex_simplicial(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format);
125 void qh_printfacetheader(qhT *qh, FILE *fp, facetT *facet);
126 void qh_printfacetridges(qhT *qh, FILE *fp, facetT *facet);
127 void qh_printfacets(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall);
128 void qh_printhyperplaneintersection(qhT *qh, FILE *fp, facetT *facet1, facetT *facet2,
129  setT *vertices, realT color[3]);
130 void qh_printneighborhood(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetA, facetT *facetB, boolT printall);
131 void qh_printline3geom(qhT *qh, FILE *fp, pointT *pointA, pointT *pointB, realT color[3]);
132 void qh_printpoint(qhT *qh, FILE *fp, const char *string, pointT *point);
133 void qh_printpointid(qhT *qh, FILE *fp, const char *string, int dim, pointT *point, int id);
134 void qh_printpoint3(qhT *qh, FILE *fp, pointT *point);
135 void qh_printpoints_out(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall);
136 void qh_printpointvect(qhT *qh, FILE *fp, pointT *point, coordT *normal, pointT *center, realT radius, realT color[3]);
137 void qh_printpointvect2(qhT *qh, FILE *fp, pointT *point, coordT *normal, pointT *center, realT radius);
138 void qh_printridge(qhT *qh, FILE *fp, ridgeT *ridge);
139 void qh_printspheres(qhT *qh, FILE *fp, setT *vertices, realT radius);
140 void qh_printvdiagram(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall);
141 int qh_printvdiagram2(qhT *qh, FILE *fp, printvridgeT printvridge, setT *vertices, qh_RIDGE innerouter, boolT inorder);
142 void qh_printvertex(qhT *qh, FILE *fp, vertexT *vertex);
143 void qh_printvertexlist(qhT *qh, FILE *fp, const char* string, facetT *facetlist,
144  setT *facets, boolT printall);
145 void qh_printvertices(qhT *qh, FILE *fp, const char* string, setT *vertices);
146 void qh_printvneighbors(qhT *qh, FILE *fp, facetT* facetlist, setT *facets, boolT printall);
147 void qh_printvoronoi(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall);
148 void qh_printvnorm(qhT *qh, FILE *fp, vertexT *vertex, vertexT *vertexA, setT *centers, boolT unbounded);
149 void qh_printvridge(qhT *qh, FILE *fp, vertexT *vertex, vertexT *vertexA, setT *centers, boolT unbounded);
150 void qh_produce_output(qhT *qh);
151 void qh_produce_output2(qhT *qh);
152 void qh_projectdim3(qhT *qh, pointT *source, pointT *destination);
153 int qh_readfeasible(qhT *qh, int dim, const char *curline);
154 coordT *qh_readpoints(qhT *qh, int *numpoints, int *dimension, boolT *ismalloc);
155 void qh_setfeasible(qhT *qh, int dim);
156 boolT qh_skipfacet(qhT *qh, facetT *facet);
157 char *qh_skipfilename(qhT *qh, char *filename);
158 
159 #endif /* qhDEFio */
qh_printfacet3vertex
void qh_printfacet3vertex(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format)
Definition: io_r.c:2257
qh_copyfilename
void qh_copyfilename(qhT *qh, char *filename, int size, const char *source, int length)
Definition: io_r.c:193
qh_dfacet
void qh_dfacet(qhT *qh, unsigned id)
Definition: io_r.c:91
qh_printfacet3geom_simplicial
void qh_printfacet3geom_simplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3])
Definition: io_r.c:2151
qh_printvdiagram
void qh_printvdiagram(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:3139
qh_detvridge3
setT * qh_detvridge3(qhT *qh, vertexT *atvertex, vertexT *vertex)
Definition: io_r.c:519
coordT
#define coordT
Definition: libqhull.h:80
qh_printcentrum
void qh_printcentrum(qhT *qh, FILE *fp, facetT *facet, realT radius)
Definition: io_r.c:1627
qh_printafacet
void qh_printafacet(qhT *qh, FILE *fp, qh_PRINT format, facetT *facet, boolT printall)
Definition: io_r.c:1113
qh_printline3geom
void qh_printline3geom(qhT *qh, FILE *fp, pointT *pointA, pointT *pointB, realT color[3])
Definition: io_r.c:2778
qh_printridge
void qh_printridge(qhT *qh, FILE *fp, ridgeT *ridge)
Definition: io_r.c:3020
qh_prepare_output
void qh_prepare_output(qhT *qh)
Definition: io_r.c:1071
qh_printcenter
void qh_printcenter(qhT *qh, FILE *fp, qh_PRINT format, const char *string, facetT *facet)
Definition: io_r.c:1583
qh_order_vertexneighbors
void qh_order_vertexneighbors(qhT *qh, vertexT *vertex)
Definition: io_r.c:1032
qh_projectdim3
void qh_projectdim3(qhT *qh, pointT *source, pointT *destination)
Definition: io_r.c:3558
qh_printvneighbors
void qh_printvneighbors(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:3312
qh_printvertexlist
void qh_printvertexlist(qhT *qh, FILE *fp, const char *string, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:3266
qh_printfacetNvertex_nonsimplicial
void qh_printfacetNvertex_nonsimplicial(qhT *qh, FILE *fp, facetT *facet, int id, qh_PRINT format)
Definition: io_r.c:2385
qh_printpoint
void qh_printpoint(qhT *qh, FILE *fp, const char *string, pointT *point)
Definition: io_r.c:2852
realT
#define realT
Definition: user.h:154
qh_facetvertices
setT * qh_facetvertices(qhT *qh, facetT *facetlist, setT *facets, boolT allfacets)
Definition: io_r.c:801
qh_printfacet2geom_points
void qh_printfacet2geom_points(qhT *qh, FILE *fp, pointT *point1, pointT *point2, facetT *facet, realT offset, realT color[3])
Definition: io_r.c:1989
qh_eachvoronoi
int qh_eachvoronoi(qhT *qh, FILE *fp, printvridgeT printvridge, vertexT *atvertex, boolT visitall, qh_RIDGE innerouter, boolT inorder)
Definition: io_r.c:618
qh_printfacetridges
void qh_printfacetridges(qhT *qh, FILE *fp, facetT *facet)
Definition: io_r.c:2586
qh_printpointvect2
void qh_printpointvect2(qhT *qh, FILE *fp, pointT *point, coordT *normal, pointT *center, realT radius)
Definition: io_r.c:3003
qh_printfacet
void qh_printfacet(qhT *qh, FILE *fp, facetT *facet)
Definition: io_r.c:1944
qh_countfacets
void qh_countfacets(qhT *qh, facetT *facetlist, setT *facets, boolT printall, int *numfacetsp, int *numsimplicialp, int *totneighborsp, int *numridgesp, int *numcoplanarsp, int *numnumtricoplanarsp)
Definition: io_r.c:244
qhT
Definition: libqhull.h:465
qh_detvnorm
pointT * qh_detvnorm(qhT *qh, vertexT *vertex, vertexT *vertexA, setT *centers, realT *offsetp)
Definition: io_r.c:334
qh_printfacet3geom_nonsimplicial
void qh_printfacet3geom_nonsimplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3])
Definition: io_r.c:2047
facetT
Definition: libqhull.h:262
qh_RIDGE
qh_RIDGE
Definition: io_r.h:61
qh_compare_facetmerge
int qh_compare_facetmerge(const void *p1, const void *p2)
Definition: io.c:147
qh_printextremes
void qh_printextremes(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:1808
qh_printneighborhood
void qh_printneighborhood(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetA, facetT *facetB, boolT printall)
Definition: io_r.c:2809
qh_dvertex
void qh_dvertex(qhT *qh, unsigned id)
Definition: io_r.c:109
qh_printvnorm
void qh_printvnorm(qhT *qh, FILE *fp, vertexT *vertex, vertexT *vertexA, setT *centers, boolT unbounded)
Definition: io_r.c:3507
boolT
#define boolT
Definition: libqhull.h:121
qh_printfacet2geom
void qh_printfacet2geom(qhT *qh, FILE *fp, facetT *facet, realT color[3])
Definition: io_r.c:1963
qh_printbegin
void qh_printbegin(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:1309
qh_printvertices
void qh_printvertices(qhT *qh, FILE *fp, const char *string, setT *vertices)
Definition: io_r.c:3286
setT
Definition: qset.h:83
qh_produce_output2
void qh_produce_output2(qhT *qh)
Definition: io_r.c:52
qh_markkeep
void qh_markkeep(qhT *qh, facetT *facetlist)
Definition: io_r.c:891
qh_printfacet3geom_points
void qh_printfacet3geom_points(qhT *qh, FILE *fp, setT *points, facetT *facet, realT offset, realT color[3])
Definition: io_r.c:2105
collision-bench.filename
filename
Definition: collision-bench.py:6
libqhull_r.h
qh
#define qh
Definition: libqhull.h:457
qh_RIDGE
qh_RIDGE
Definition: io.h:61
qh_printvdiagram2
int qh_printvdiagram2(qhT *qh, FILE *fp, printvridgeT printvridge, setT *vertices, qh_RIDGE innerouter, boolT inorder)
Definition: io_r.c:3200
qh_skipfilename
char * qh_skipfilename(qhT *qh, char *filename)
Definition: io_r.c:4037
ridgeT
Definition: libqhull.h:371
qh_PRINT
qh_PRINT
Definition: libqhull.h:161
qh_printfacetheader
void qh_printfacetheader(qhT *qh, FILE *fp, facetT *facet)
Definition: io_r.c:2443
qh_printend
void qh_printend(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:1690
qh_readfeasible
int qh_readfeasible(qhT *qh, int dim, const char *curline)
Definition: io_r.c:3591
qh_RIDGEall
@ qh_RIDGEall
Definition: io_r.h:63
qh_compare_facetarea
int qh_compare_facetarea(const void *p1, const void *p2)
Definition: io.c:127
qh_printend4geom
void qh_printend4geom(qhT *qh, FILE *fp, facetT *facet, int *num, boolT printall)
Definition: io_r.c:1751
qh_printpointid
void qh_printpointid(qhT *qh, FILE *fp, const char *string, int dim, pointT *point, int id)
Definition: io_r.c:2858
octree.p1
tuple p1
Definition: octree.py:54
qh_printextremes_2d
void qh_printextremes_2d(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:1847
qh_printpoints_out
void qh_printpoints_out(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:2912
qh_eachvoronoi_all
int qh_eachvoronoi_all(qhT *qh, FILE *fp, printvridgeT printvridge, boolT isUpper, qh_RIDGE innerouter, boolT inorder)
Definition: io_r.c:720
qh_printvridge
void qh_printvridge(qhT *qh, FILE *fp, vertexT *vertex, vertexT *vertexA, setT *centers, boolT unbounded)
Definition: io_r.c:3536
qh_setfeasible
void qh_setfeasible(qhT *qh, int dim)
Definition: io_r.c:3967
qh_compare_facetvisit
int qh_compare_facetvisit(const void *p1, const void *p2)
Definition: io.c:159
qh_markvoronoi
setT * qh_markvoronoi(qhT *qh, facetT *facetlist, setT *facets, boolT printall, boolT *isLowerp, int *numcentersp)
Definition: io_r.c:964
qh_facet2point
void qh_facet2point(qhT *qh, facetT *facet, pointT **point0, pointT **point1, realT *mindist)
Definition: io_r.c:760
pointT
#define pointT
Definition: libqhull.h:96
qh_printfacets
void qh_printfacets(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:2643
qh_RIDGEinner
@ qh_RIDGEinner
Definition: io_r.h:63
vertexT
Definition: libqhull.h:396
qh_RIDGEouter
@ qh_RIDGEouter
Definition: io_r.h:63
qh_printpoint3
void qh_printpoint3(qhT *qh, FILE *fp, pointT *point)
Definition: io_r.c:2885
qh_produce_output
void qh_produce_output(qhT *qh)
Definition: io_r.c:39
qh_printvoronoi
void qh_printvoronoi(qhT *qh, FILE *fp, qh_PRINT format, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:3387
qh_skipfacet
boolT qh_skipfacet(qhT *qh, facetT *facet)
Definition: io_r.c:4007
qh_printfacet4geom_simplicial
void qh_printfacet4geom_simplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3])
Definition: io_r.c:2337
qh_printpointvect
void qh_printpointvect(qhT *qh, FILE *fp, pointT *point, coordT *normal, pointT *center, realT radius, realT color[3])
Definition: io_r.c:2978
qh_printfacet2math
void qh_printfacet2math(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format, int notfirst)
Definition: io_r.c:2019
qh_readpoints
coordT * qh_readpoints(qhT *qh, int *numpoints, int *dimension, boolT *ismalloc)
Definition: io_r.c:3673
printvridgeT
void(* printvridgeT)(qhT *qh, FILE *fp, vertexT *vertex, vertexT *vertexA, setT *centers, boolT unbounded)
Definition: io_r.h:76
qh_printspheres
void qh_printspheres(qhT *qh, FILE *fp, setT *vertices, realT radius)
Definition: io_r.c:3043
qh_printfacetNvertex_simplicial
void qh_printfacetNvertex_simplicial(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format)
Definition: io_r.c:2416
qh_detvridge
setT * qh_detvridge(qhT *qh, vertexT *vertex)
Definition: io_r.c:477
qh_printhyperplaneintersection
void qh_printhyperplaneintersection(qhT *qh, FILE *fp, facetT *facet1, facetT *facet2, setT *vertices, realT color[3])
Definition: io_r.c:2723
qh_printfacet4geom_nonsimplicial
void qh_printfacet4geom_nonsimplicial(qhT *qh, FILE *fp, facetT *facet, realT color[3])
Definition: io_r.c:2283
qh_printfacet3math
void qh_printfacet3math(qhT *qh, FILE *fp, facetT *facet, qh_PRINT format, int notfirst)
Definition: io_r.c:2205
qh_printextremes_d
void qh_printextremes_d(qhT *qh, FILE *fp, facetT *facetlist, setT *facets, boolT printall)
Definition: io_r.c:1904
qh_geomplanes
void qh_geomplanes(qhT *qh, facetT *facet, realT *outerplane, realT *innerplane)
Definition: io_r.c:849
qh_printvertex
void qh_printvertex(qhT *qh, FILE *fp, vertexT *vertex)
Definition: io_r.c:3224


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:14