rbox(1)

hey bestie! πŸ’– welcome to rbox(1), straight from the General Commands Manual. this is your girl explaining rbox β€” the tool that generates point distributions for qhull. periodt. ✨


✨ NAME ✨

rbox β€” generate point distributions for qhull πŸ¦‹


✨ SYNOPSIS ✨

command rbox (w/o arguments) lists the options. πŸ’…

no cap, just run it with no args and it spills the tea on all the options.

✨ DESCRIPTION ✨

rbox generates random or regular points according to the options given, and outputs the points to stdout. the points are generated in a cube, unless 's' or 'k' option is given. the format of the output is the following: first line contains the dimension and a comment, second line contains the number of points, and the following lines contain the points, one point per line. points are represented by their coordinate values. 🌸


✨ EXAMPLES ✨

  • rbox 10 β€” 10 random points in the unit cube centered at the origin. 🧚
  • rbox 10 s D2 β€” 10 random points on a 2‐d circle. πŸ’«
  • rbox 100 W0 β€” 100 random points on the surface of a cube. 🎲
  • rbox 1000 s D4 β€” 1000 random points on a 4‐d sphere. 🌐
  • rbox c D5 O0.5 β€” a 5‐d hypercube with one corner at the origin. πŸ‘‘
  • rbox d D10 β€” a 10‐d diamond. πŸ’Ž
  • rbox x 1000 r W0 β€” 100 random points on the surface of a fixed simplex. πŸ”Ί
  • rbox y D12 β€” a 12‐d simplex. ✨
  • rbox l 10 β€” 10 random points along a spiral. πŸŒ€
  • rbox l 10 r β€” 10 regular points along a spiral plus two end points. 🌈
  • rbox 1000 L10000 D4 s β€” 1000 random points on the surface of a narrow lens. πŸ”
  • rbox c G2 d G3 β€” a cube with coordinates +2/-2 and a diamond with coordinates +3/-3. πŸ’ 
  • rbox 64 M3,4 z β€” a rotated, {0,1,2,3} x {0,1,2,3} x {0,1,2,3} lattice (Mesh) of integer points. 'rbox 64 M1,0' is orthogonal. 🧊
  • rbox P0 P0 P0 P0 P0 β€” 5 copies of the origin in 3-d. try 'rbox P0 P0 P0 P0 P0 | qhull QJ'. 🫢
  • r 100 s Z1 G0.1 β€” two cospherical 100-gons plus another cospherical point. 🌸
  • 100 s Z1 β€” a cone of points. πŸ”Ί
  • 100 s Z1e-7 β€” a narrow cone of points with many precision errors. πŸ’€

✨ OPTIONS ✨

  • n β€” bestie, this is the number of points. πŸ’–
  • Dn β€” dimension n-d (default is 3-d). ✨
  • Bn β€” bounding box coordinates (default 0.5). πŸŽ€
  • l β€” spiral distribution, available only in 3-d. πŸŒ€
  • Ln β€” lens distribution of radius n. may be used with 's', 'r', 'G', and 'W'. πŸ”
  • Mn,m,r β€” lattice (Mesh) rotated by {[n,-m,0], [m,n,0], [0,0,r], ...}. use 'Mm,n' for a rigid rotation with r = sqrt(n^2+m^2). 'M1,0' is an orthogonal lattice. for example, '27 M1,0' is {0,1,2} x {0,1,2} x {0,1,2}. '27 M3,4 z' is a rotated integer lattice. 🧊
  • s β€” cospherical points randomly generated in a cube and projected to the unit sphere. 🌐
  • x β€” simplicial distribution. it is fixed for option 'r'. may be used with 'W'. πŸ”Ί
  • y β€” simplicial distribution plus a simplex. both 'x' and 'y' generate the same points. πŸ”»
  • Wn β€” restrict points to distance n of the surface of a sphere or a cube. 🎲
  • c β€” add a unit cube to the output. 🧊
  • c Gm β€” add a cube with all combinations of +m and -m to the output. πŸ’ 
  • d β€” add a unit diamond to the output. πŸ’Ž
  • d Gm β€” add a diamond made of 0, +m and -m to the output. πŸ’ 
  • Cn,r,m β€” add n nearly coincident points within radius r of m points. 🌸
  • Pn,m,r β€” add point [n,m,r] to the output first. pad coordinates with 0.0. πŸ“
  • n β€” remove the command line from the first line of output. πŸ—‘οΈ
  • On β€” offset the data by adding n to each coordinate. βž•
  • t β€” use time in seconds as the random number seed (default is command line). ⏰
  • tn β€” set the random number seed to n. 🎲
  • z β€” generate integer coordinates. use 'Bn' to change the range. the default is 'B1e6' for six‐digit coordinates. in R^4, seven‐digit coordinates will overflow hyperplane normalization. πŸ’€
  • Zn s β€” restrict points to a disk about the z+ axis and the sphere (default Z1.0). includes the opposite pole. 'Z1e-6' generates degenerate points under single precision. ⚠️
  • Zn Gm s β€” same as Zn with an empty center (default G0.5). πŸ•³οΈ
  • r s D2 β€” generate a regular polygon. ⬑
  • r s Z1 G0.1 β€” generate a regular cone. πŸ”Ί

✨ BUGS ✨

some combinations of arguments generate odd results. 😭

report bugs to qhull_bug@qhull.org, other correspondence to qhull@qhull.org. πŸ’Œ


✨ SEE ALSO ✨

qhull(1) πŸ‘‘


✨ AUTHOR ✨

C. Bradford Barber bradb@shore.net


this iconic manual page is from the Geometry Center, dated August 10, 1998, and it's for rbox(1). stay slay, bestie. πŸ’…βœ¨