/opt/ros/diamondback/stacks/graspit_simulator/graspit/graspit_source/qhull/rbox.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <limits.h>
#include <time.h>
#include "user.h"
Include dependency graph for rbox.c:

Go to the source code of this file.

Defines

#define DEFAULTzbox   1e6
#define MAXdim   100
#define MINVALUE   0.8
#define PI   3.1415926535897932384
#define qh_rand_a   16807
#define qh_rand_m   2147483647
#define qh_rand_q   127773
#define qh_rand_r   2836

Functions

int main (int argc, char **argv)
void out1 (double a)
void out2n (double a, double b)
void out3n (double a, double b, double c)
int qh_rand (void)
void qh_srand (int seed)
int roundi (double a)

Variables

FILE * fp
int isinteger = 0
double out_offset = 0.0
char prompt []
static int seed = 1

Define Documentation

#define DEFAULTzbox   1e6

Definition at line 44 of file rbox.c.

#define MAXdim   100

Definition at line 42 of file rbox.c.

#define MINVALUE   0.8

Definition at line 41 of file rbox.c.

#define PI   3.1415926535897932384

Definition at line 43 of file rbox.c.

#define qh_rand_a   16807
#define qh_rand_m   2147483647
#define qh_rand_q   127773
#define qh_rand_r   2836

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 95 of file rbox.c.

void out1 ( double  a  ) 

Definition at line 691 of file rbox.c.

void out2n ( double  a,
double  b 
)

Definition at line 699 of file rbox.c.

void out3n ( double  a,
double  b,
double  c 
)

Definition at line 707 of file rbox.c.

int qh_rand ( void   ) 

Definition at line 726 of file rbox.c.

void qh_srand ( int  seed  ) 

Definition at line 743 of file rbox.c.

int roundi ( double  a  ) 

Definition at line 675 of file rbox.c.


Variable Documentation

FILE* fp

Definition at line 87 of file rbox.c.

int isinteger = 0

Definition at line 88 of file rbox.c.

double out_offset = 0.0

Definition at line 89 of file rbox.c.

char prompt[]
Initial value:
 "\n\
-rbox- generate various point distributions.  Default is random in cube.\n\
\n\
args (any order, space separated):                    Version: 1998/1/28\n\
  3000    number of random points in cube, lens, spiral, sphere or circle\n\
  Bn      bounding box coordinates, default %2.2g\n\
  D3      dimension 3-d\n\
  Xn Pm Pm generate n random points in convex hull of Pm...\n\
  l       generate a regular 3-d spiral\n\
  r       generate a regular polygon, ('r s Z1 G0.1' makes a cone)\n\
  s       generate cospherical points\n\
  x       generate random points in simplex, may use 'r' or 'Wn'\n\
  y       same as 'x', plus simplex\n\
\n\
  Ln      lens distribution of radius n.  Also 's', 'r', 'G', 'W'.\n\
  On      offset coordinates by n\n\
  Pn,m,r  add point [n,m,r] first, pads with 0\n\
  W0.1    random distribution within 0.1 of the cube's or sphere's surface\n\
  Z0.5 s  random points in a 0.5 disk projected to a sphere\n\
  Z0.5 s G0.6 same as Z0.5 within a 0.6 gap\n\
\n\
  c       add a unit cube to the output ('c G2.0' sets size)\n\
  d       add a unit diamond to the output ('d G2.0' sets size)\n\
  h       output as homogeneous coordinates for cdd\n\
  n       remove command line from the first line of output\n\
  t       use time as the random number seed (default is command line)\n\
  tn      use n as the random number seed\n\
  z       print integer coordinates, default 'Bn' is %2.2g\n\
"

Definition at line 46 of file rbox.c.

int seed = 1 [static]

Definition at line 724 of file rbox.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 10:59:23 2012