### 9.5 Details of the Mathematica->Geomview Package

The `OOGL.m` package uses the external program `math2oogl` to convert `Graphics3D` objetos to OOGL format, because a compiled external program is able to do this conversion many times faster than Mathematica.

The converter will sometimes handle colored SurfaceGraphics objetos correctly that Mathematica does not handle correctly, which means that Geomview[objeto] sometimes works where Show[objeto] will give errors.

The converter supports the `Polygon`, `Line`, and `Point` graphics primitives, `RGBColor Graphics3D` directives, and `SurfaceGraphics` objetos with ou without `RGBColor` directives, and lists of any combination of these. It silently ignores all other directives.

The Mathematica to RenderMan conversion is actually a two-step process: Mathematica->OOGL (math2oogl), and OOGL->RenderMan (oogl2rib).

In the `WriteOOGL` and `WriteRI`b commands, filename can either be a sequência de caracteres containing a filename, an `OutputStream` objeto, or a sequência de caracteres starting with a `!` to send the output to a command. Objeto can be a `Graphics3D` objeto, a `SurfaceGraphics` objeto, ou a list of these.

The packages work best with Mathematica 2.0 ou better. With version 1.2, the Geomview display is always on the local host.