BBOX - Manual do Geomview
Description: Manual do Geomview

Next: BBP and BEZ, Previous: MESH, Up: Object File Formats

#### 4.2.3 BBOX: simple bounding boxes

This is a very simple toy-objeto: it takes 2 vertices and draws a (hyper-) cube which is the bounding box of the two vertices.

Syntax:

           BBOX
           x[0] y[0] z[0]
           x[1] y[1] z[1]

or

           4BBOX
           x[0] y[0] z[0] w[0]
           x[1] y[1] z[1] w[1]

or

           nBBOX
           Ndim # > 3
           x[0] y[0] z[0] w[0] ...
           x[1] y[1] z[1] w[1] ...

or

           4nBBOX
           Ndim # > 3
           d[0] x[0] y[0] z[0] w[0] ...
           d[0] x[1] y[1] z[1] w[1] ...

There is no BBOX binary format. The `4` modifyer has different meanings depending on the dimension of the bounding box: `4BBOX` means that the 4 components of the vertices make up a 4-dimensional bounding-box. Using `4` in conjunction with `n` – `4nBBOX` NDim – means that the vertices specified in the file have NDim+1 components, but the component at index 0 is the homogeneous divisor (in contrast to the ordinary 3d case where the homogeneous divisor would be the `w` – the third – component).