Go to the documentation of this file.
21 #pragma warning( disable : 4706)
25 -rbox- generate various point distributions. Default is random in cube.\n\
27 args (any order, space separated): Version: 2016/01/18\n\
28 3000 number of random points in cube, lens, spiral, sphere or grid\n\
30 c add a unit cube to the output ('c G2.0' sets size)\n\
31 d add a unit diamond to the output ('d G2.0' sets size)\n\
32 l generate a regular 3-d spiral\n\
33 r generate a regular polygon, ('r s Z1 G0.1' makes a cone)\n\
34 s generate cospherical points\n\
35 x generate random points in simplex, may use 'r' or 'Wn'\n\
36 y same as 'x', plus simplex\n\
37 Cn,r,m add n nearly coincident points within radius r of m points\n\
38 Pn,m,r add point [n,m,r] first, pads with 0, maybe repeated\n\
40 Ln lens distribution of radius n. Also 's', 'r', 'G', 'W'.\n\
41 Mn,m,r lattice(Mesh) rotated by [n,-m,0], [m,n,0], [0,0,r], ...\n\
42 '27 M1,0,1' is {0,1,2} x {0,1,2} x {0,1,2}. Try 'M3,4 z'.\n\
43 W0.1 random distribution within 0.1 of the cube's or sphere's surface\n\
44 Z0.5 s random points in a 0.5 disk projected to a sphere\n\
45 Z0.5 s G0.6 same as Z0.5 within a 0.6 gap\n\
47 Bn bounding box coordinates, default %2.2g\n\
48 h output as homogeneous coordinates for cdd\n\
49 n remove command line from the first line of output\n\
50 On offset coordinates by n\n\
51 t use time as the random number seed(default is command line)\n\
52 tn use n as the random number seed\n\
53 z print integer coordinates, default 'Bn' is %2.2g\n\
59 int main(
int argc,
char **argv) {
70 if (argc == 2 && strcmp(argv[1],
"D4")==0)
71 qh_fprintf_stderr(0,
"\nStarting the rbox smoketest for qhull. An immediate failure indicates\nthat non-reentrant rbox was linked to reentrant routines. An immediate\nfailure of qhull may indicate that qhull was linked to the wrong\nqhull library. Also try 'rbox D4 | qhull T1'\n");
74 if ((command= (
char *)
qh_malloc((
size_t)command_size))) {
76 qh_fprintf_stderr(6264,
"rbox internal error: allocated insufficient memory (%d) for arguments\n", command_size);
83 qh_fprintf_stderr(6265,
"rbox error: insufficient memory for %d bytes\n", command_size);
void qh_fprintf_stderr(int msgcode, const char *fmt,...)
int qh_argv_to_command(int argc, char *argv[], char *command, int max_size)
int qh_argv_to_command_size(int argc, char *argv[])
void * qh_malloc(size_t size)
int qh_rboxpoints(FILE *fout, FILE *ferr, char *rbox_command)
#define QHULL_LIB_CHECK_RBOX
int main(int argc, char **argv)
hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:15