Index: dxf/dxf-g.xml
===================================================================
--- dxf/dxf-g.xml	(revision 0)
+++ dxf/dxf-g.xml	(revision 0)
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='dxfg1'>
+<refmeta>
+<refentrytitle>DXF-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>dxf-g</refname>
+<refpurpose>DXF Translator (DXF to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>dxf-g</command>    
+    <arg choice='opt'>-c </arg>
+    <arg choice='opt'>-d </arg>
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-s <replaceable>scale_factor</replaceable></arg>
+    <arg choice='opt'>-t <replaceable>tolerance</replaceable></arg>
+    <arg choice='plain'><replaceable>file.dxf</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>dxf-g</emphasis>
+converts the specified
+<emphasis remap='I'>file.dxf</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file.</para>
+
+<para>The following options are available:</para>
+
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><option>-c</option></term>
+  <listitem>
+<para>Only the first color seen for a layer should be used. Without this option,
+layers may be broken into separate BOT primitives according to color assigned.</para>
+
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-d</option></term>
+  <listitem>
+<para>Sets a debug flag. The only effect is to cause a core dump on failure.
+This is probably not useful except for developers.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-v</option></term>
+  <listitem>
+<para>Produces very verbose output on stderr.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-s </option><emphasis remap='I'>scale_factor</emphasis></term>
+  <listitem>
+<para>Provides a scale factor to be applied to the DXF input. This can be used for DXF files
+that do not provide units information.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-t </option><emphasis remap='I'>tolerance</emphasis></term>
+  <listitem>
+<para>Specifies the maximum distance (in mm) between two vertices at which the two vertices
+will be considered to be the same vertex.</para>
+
+  </listitem>
+  </varlistentry>
+</variablelist>
+
+<para>The
+<emphasis remap='B'>file.dxf</emphasis>
+file is expected to be in the ASCII Autodesk DXF format as defined in the
+Autocad 2006 manuals. This converter handles entities of types:</para>
+
+<para>POLYLINE
+<!-- .br -->
+LWPOLYLINE
+<!-- .br -->
+LEADER
+<!-- .br -->
+DIMENSION
+<!-- .br -->
+VERTEX
+<!-- .br -->
+LINE
+<!-- .br -->
+CIRCLE
+<!-- .br -->
+ARC
+<!-- .br -->
+ELLIPSE
+<!-- .br -->
+3DFACE
+<!-- .br -->
+TEXT
+<!-- .br -->
+MTEXT
+<!-- .br -->
+ATTRIB
+<!-- .br -->
+SOLID
+<!-- .br -->
+SPLINE</para>
+
+<para>The POLYLINE entities in AUTOCAD are actually a container for numerous different entity types. The types
+of POLYLINE entities converted include:</para>
+
+<para>3D polylines
+<!-- .br -->
+3D polygon meshes
+<!-- .br -->
+polyface meshes.</para>
+
+<para>SOLID entities are 2D shapes with a solid fill, but this converter does not do
+any filling.
+Each layer is converted to a separate object. Colors are also converted.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>dxf-g sample.dxf sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><emphasis remap='I'>http://images.autodesk.com/adsk/files/dxf_format.pdf</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1993-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: dxf/g-dxf.xml
===================================================================
--- dxf/g-dxf.xml	(revision 0)
+++ dxf/g-dxf.xml	(revision 0)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gdxf1'>
+<refmeta>
+<refentrytitle>G-DXF</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-dxf</refname>
+<refpurpose>AutoCad DXF Translator (BRL-CAD to DXF)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-dxf</command>    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-i </arg>
+    <arg choice='opt'>-p </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-D <replaceable>calculation_tolerance</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>DXF_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-dxf</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the
+<emphasis remap='I'>AutoCad DXF</emphasis>
+file format.
+The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+option may be used to specify an absolute tessellation tolerance (in millimeters). This
+requires that the maximum absolute error from the tessellated surface to the actual
+surface must not be greater than
+<emphasis remap='I'>abs_tol.</emphasis>
+The
+<option>-n</option>
+option specifies a surface normal error tolerance (in degrees) for the tessellation.
+The
+<option>-r</option>
+option may be used to set a relative error tolerance. This effectively
+sets an absolute tolerance for each primitive solid by multiplying the
+overall size of the solid by
+<emphasis remap='I'>rel_tol.</emphasis>
+The
+<option>-D</option>
+option specifies a calculational distance tolerance (mm). Any two vertices
+that are less than this distance apart will be treated as the same vertex.
+The
+<option>-v</option>
+option requests verbose output.
+The
+<option>-i</option>
+option requests the output file units to be inches (the default is mm).The
+<option>-p</option>
+option requests that the output consist entirely of POLYFACE MESH entities.
+(The default is all 3DFACE entities).
+The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-dxf -o sample.dxf sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2003-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-x3d.xml
===================================================================
--- g-x3d.xml	(revision 0)
+++ g-x3d.xml	(revision 0)
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gx3d1'>
+<refmeta>
+<refentrytitle>G-X3D</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-x3d</refname>
+<refpurpose>Perform Boolean evaluations to produce an X3D facetted model</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-x3d</command>    
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-d <replaceable>calc_dist_tol</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tess_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tess_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tess_tol</replaceable></arg>
+    <arg choice='opt'>-x <replaceable>librt_debug_flag</replaceable></arg>
+    <arg choice='opt'>-X <replaceable>NMG_debug_flag</replaceable></arg>
+    <arg choice='opt'>-u <replaceable>units_name</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>outfile</replaceable></arg>
+    <arg choice='plain'><replaceable>infile.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>g-x3d</command>
+performs the Boolean operations specified in any regions in the specified
+<emphasis remap='I'>object(s)</emphasis>
+and writes the resulting facetted objects to
+<emphasis remap='I'>outfile</emphasis>
+or to
+<emphasis remap='I'>stdout</emphasis>
+if the
+<option>-o</option>
+option is not used. The output is in X3D facetted format. The
+<option>-v</option>
+option requests verbose output while the conversion is taking place. The
+<option>-d</option>
+option specifies a calculational distance tolerance (in millimeters). This
+tolerance is used to distinguish neighboring vertices. Any two vertices less than
+this tolerance distance apart will be considered the same vertex. The default value
+is 0.005mm.
+Prior to performing the Boolean operations for each region, the involved primitive solids
+are converted to a planar facetted approximation and stored as NMG solids. This tessellation
+can be controlled using the tessellation tolerances. The
+<option>-a</option>
+option may be used to specify an absolute tessellation tolerance (in millimeters). This
+requires that the maximum absolute error from the tessellated surface to the actual
+surface must not be greater than
+<emphasis remap='I'>abs_tess_tol.</emphasis>
+The
+<option>-n</option>
+option specifies a surface normal error tolerance (in degrees) for the tessellation.
+The
+<option>-r</option>
+option may be used to set a relative error tolerance. This effectively
+sets an absolute tolerance for each primitive solid by multiplying the
+overall size of the solid by
+<emphasis remap='I'>rel_tess_tol.</emphasis>
+The
+<option>-x</option>
+and
+<option>-X</option>
+options are used to set debug flags for
+<emphasis remap='I'>librt</emphasis>
+and the
+<emphasis remap='I'>NMG</emphasis>
+routines respectively. The definitions of these flags may be found in
+<emphasis remap='I'>raytrace.h</emphasis>
+and
+<emphasis remap='I'>nmg.h.</emphasis>
+The
+<option>-u</option>
+option can be used to set the units for the resulting X3D file (the default is mm).
+Any units name that MGED accepts will work here.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-x3d -o shell.x3d sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Robert Parker (The SURVICE Engineering Co., Aberdeen, MD)</para>
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2002-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: comgeom/comgeom-g.xml
===================================================================
--- comgeom/comgeom-g.xml	(revision 0)
+++ comgeom/comgeom-g.xml	(revision 0)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='comgeomg1'>
+<refmeta>
+<refentrytitle>COMGEOM-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>comgeom-g</refname>
+<refpurpose>convert GIFT COMGEOM model into MGED database</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>comgeom-g</command>    
+    <arg choice='opt'>-d <replaceable>debug_lvl</replaceable></arg>
+    <arg choice='opt'>-v <replaceable>version_num</replaceable></arg>
+    <arg choice='opt'>-s <replaceable>name_suffix</replaceable></arg>
+    <arg choice='plain'><replaceable>file.cg</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+    <sbr/>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>Read a COMGEOM version 4 or version 5 format model from
+a GIFT-style input file, convert the geometry into
+the internal form used by the BRL-CAD package,
+and write an MGED-style binary database.</para>
+
+<para>Each solid is given the name “s###”, retaining the COMGEOM solid number.
+Each region is given the name “r###”, retaining the COMGEOM region number.
+Regions are grouped together into various groups “g###” based
+on the region-id numbers.  Group “g00” gets all regions with region-id
+of zero, “g0” gets ids one through 99, “g1” gets ids 100 through 199, etc.</para>
+
+<para>The default input is COMGEOM version 5.
+Version 4 can be converted by specifying the
+<option>-v4</option>
+flag.
+For the time being, the DoE MORSE/RAFFLE format (believed to be the
+original MAGIC format) can be converted by specifying the
+<option>-v1</option>
+flag.</para>
+
+<para>By default, the program
+<command>comgeom-g</command>
+operates silently.
+Because the program may require a minute or two to convert a large
+database, some users prefer to have various status reports that
+indicate the progress of the conversion.
+This can be selected by specifying the
+<option>-d1</option>
+flag (debug level 1).</para>
+
+<para>The units used in a COMGEOM file are specified on a header record.
+The units of an MGED database are always millimeters.
+<command>comgeom-g</command>
+performs automatic units conversion using the built-in units conversion
+feature of
+<citerefentry><refentrytitle>libwdb</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para><emphasis remap='I'>comgeom-g -d1 -v4 file.cg file.g</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>The diagnostics are intended to be self-explanatory.
+Familiarity with GIFT COMGEOM terminology will be helpful.</para>
+</refsect1>
+
+<refsect1 xml:id='bugs'><title>BUGS</title>
+<para>It is expected that the input file should be a valid COMGEOM model.
+While quite a bit of input checking is performed, wildly incorrect
+input may produce amusing results.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>libwdb</refentrytitle><manvolnum>3</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Michael John Muuss</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1989-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: dbclean.xml
===================================================================
--- dbclean.xml	(revision 0)
+++ dbclean.xml	(revision 0)
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='dbclean1'>
+<refmeta>
+<refentrytitle>DBCLEAN</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>dbclean</refname>
+<refpurpose> a shell script for compacting mged databases.</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>dbclean</command>    
+    <arg choice='plain'><replaceable>in_model.g</replaceable></arg>
+    <arg choice='plain'><replaceable>out_model.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>Dbclean</emphasis>
+operates on the indicated input database
+<emphasis remap='I'>in_model.g</emphasis>
+and produces a compacter version of the same
+<emphasis remap='I'>out_model.g.</emphasis></para>
+
+<para>The objective is to remove ``holes" left in the original database by using
+the <emphasis remap='I'>kill/killall</emphasis> command in
+<citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
+Note that when a database is compacted in this manner, the compacting is
+dependent on the successful completion of the converters
+<citerefentry><refentrytitle>g2asc</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+and
+<citerefentry><refentrytitle>asc2g</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
+The compacting will only be aborted if one of the conversions fails.  Thus,
+when either converter ``skips" solids, <command>dbclean</command> will continue, and
+<emphasis remap='I'>out_model.g</emphasis>
+will be written, albeit, without the skipped solids.  This will also
+result in a smaller database.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para>This section will acquaint the user with the ordinary usage of <command>dbclean</command>.</para>
+
+<literallayout remap='.nf'>
+<emphasis remap='I'>dbclean in_model.g out_model.g</emphasis>
+</literallayout> <!-- .fi -->
+
+<para>This will result in a compacted version of the input.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Numerous error conditions are possible, usually due to errors in
+the geometry database.
+Descriptive messages are printed on standard error (file descriptor 2).</para>
+</refsect1>
+
+<refsect1 xml:id='bugs'><title>BUGS</title>
+<para>Most deficiencies observed while using the
+<command>dbclean</command>
+program are usually with the
+<citerefentry><refentrytitle>g2asc</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+and
+<citerefentry><refentrytitle>asc2g</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+packages instead.</para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Susanne Muuss, J.D.</para>
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1991-2012 United States Government as
+represented by the U.S. Army Research Laboratory. All rights reserved.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: nastran-g.xml
===================================================================
--- nastran-g.xml	(revision 0)
+++ nastran-g.xml	(revision 0)
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='nastrang1'>
+<refmeta>
+<refentrytitle>NASTRAN-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>nastran-g</refname>
+<refpurpose>NASTRAN Translator (NASTRAN to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>nastran-g</command>    
+    <arg choice='opt'>-t <replaceable>tolerance</replaceable></arg>
+    <arg choice='opt'>-t <replaceable>tolerance_distance</replaceable></arg>
+    <arg choice='opt'>-n </arg>
+    <arg choice='opt'>-m </arg>
+    <arg choice='plain'>-i <replaceable>nastran_input_file</replaceable></arg>
+    <arg choice='plain'>-o <replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>nastran-g</emphasis>
+converts the specified
+<emphasis remap='I'>nastran_input_file</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. The
+<emphasis remap='I'>tolerance_distance</emphasis>
+provided is the maximum distance (in mm) between two
+vertices at which they will be considered to be the same vertex. The
+<option>-n</option>
+option requests that the output solids created from
+<emphasis remap='I'>NASTRAN CQUAD4</emphasis>
+or
+<emphasis remap='I'>CTRIA3</emphasis>
+elements be stored in the BRL-CAD file as NMG solids rather than the default BOT solids. The
+<option>-m</option>
+option indicates that the units of the NASTRAN file are millimeters, rather than the default
+inches. The converter currently only handles the
+<emphasis remap='I'>CROD, CBAR, CTRIA3,</emphasis>
+and
+<emphasis remap='I'>CQUAD4</emphasis>
+elements.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>nastran-g -i nastran.file -o sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1998-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: enf-g.xml
===================================================================
--- enf-g.xml	(revision 0)
+++ enf-g.xml	(revision 0)
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='enfg1'>
+<refmeta>
+<refentrytitle>ENF-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>enf-g</refname>
+<refpurpose>Elysium Neutral Format Translator (ENF to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>enf-g</command>    
+    <arg choice='opt'>-t <replaceable>tolerance</replaceable></arg>
+    <arg choice='opt'>-i <replaceable>starting_ident_number</replaceable></arg>
+    <arg choice='opt'>-l <replaceable>name_length_limit</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>part_number_to_name_mapping</replaceable></arg>
+    <arg choice='plain'><replaceable>input_enf_facet_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>enf-g</emphasis>
+converts the specified
+<emphasis remap='I'>input_enf_facet_file</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. This input file is expected to be the ASCII output from the Elysium enf2mxp tessellator. The
+<emphasis remap='I'>tolerance</emphasis>
+provided is the maximum distance (in mm) between two
+vertices at which they will be considered to be the same vertex. The
+<emphasis remap='I'>starting_ident_number</emphasis>
+is the ident number to use for the first region created, each succeeding region will have their
+ident numbers incremented by one.
+If a
+<emphasis remap='I'>name_length_limit</emphasis>
+is provided, then the resulting names in the BRL-CAD model will not be longer than
+that limit. If a
+<emphasis remap='I'>part_number_to_name_mapping</emphasis>
+file is provided, then that file will be read and used to convert part numbers in the
+<emphasis remap='I'>input_enf_facet_file</emphasis>
+to the corresponding names in the mapping. This file is expected to consist of a series
+of lines of text with each line having a part number and a legal BRL-CAD object name separated
+by a tab.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>enf-g sample.enf sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2001-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: dbupgrade.xml
===================================================================
--- dbupgrade.xml	(revision 0)
+++ dbupgrade.xml	(revision 0)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='dbupgrade1'>
+<refmeta>
+<refentrytitle>DBUPGRADE</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>dbupgrade</refname>
+<refpurpose> a program to upgrade BRL-CAD mged geometry databases files to the current version.</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>dbupgrade</command>    
+    <arg choice='plain'><replaceable>input.g</replaceable></arg>
+    <arg choice='plain'><replaceable>output.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>dbupgrade</command>
+operates on the indicated input geometry database
+<emphasis remap='I'>input.g</emphasis>
+recognizing the version of the BRL-CAD database provided as input and
+then converting it to the current database version.  Output is then saved to the specified
+<emphasis remap='I'>output.g</emphasis>
+file.</para>
+
+<para>Note that this tool does not automatically “fix” an existing (v4
+format) binary database that was transferred from a
+binary-incompatible platform.  However, if you run
+<command>dbupgrade</command>
+on the file before transferring from that platform, the upgraded
+output file will be platform independent.</para>
+
+<para>Running
+<command>dbupgrade</command>
+removes the need to run
+<citerefentry><refentrytitle>g2asc</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+and
+<citerefentry><refentrytitle>asc2g</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+on a database.  The latest BRL-CAD geometry database format is
+platform independent.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>g2asc</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>asc2g</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Numerous error conditions are possible, usually due to errors in
+the geometry database.
+Descriptive messages are printed on standard error (file descriptor 2).</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2006-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-nff.xml
===================================================================
--- g-nff.xml	(revision 0)
+++ g-nff.xml	(revision 0)
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gnff1'>
+<refmeta>
+<refentrytitle>G-NFF</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-nff</refname>
+<refpurpose>NFF Translator (BRL-CAD to NFF)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-nff</command>    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-i </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-e <replaceable>error_file</replaceable></arg>
+    <arg choice='opt'>-D <replaceable>calculation_tolerance</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>output.nff</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-nff</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the
+<emphasis remap='I'>NFF</emphasis>
+file format.
+The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances.
+The
+<option>-D</option>
+option specifies a calculational distance tolerance (mm). Any two vertices
+that are less than this distance apart will be treated as the same vertex.
+The
+<option>-v</option>
+option requests verbose output.
+The
+<option>-i</option>
+option requests the output file units to be inches (the default is mm).
+The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).
+The
+<option>-e</option>
+option specifies a file for receiving the error messages.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-nff -o sample.nff sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2003-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-obj.xml
===================================================================
--- g-obj.xml	(revision 0)
+++ g-obj.xml	(revision 0)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gobj1'>
+<refmeta>
+<refentrytitle>G-OBJ</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-obj</refname>
+<refpurpose>BRL-CAD to Wavefront Object File converter</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-obj</command>    <arg choice='opt'>-mviu </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-e <replaceable>error_file</replaceable></arg>
+    <arg choice='opt'>-D <replaceable>calculation_tolerance</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>output.obj</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-obj</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the
+<emphasis remap='I'>Wavefront</emphasis>
+<emphasis remap='I'>OBJ</emphasis>
+file format.
+The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances.
+The
+<option>-D</option>
+option specifies a calculational distance tolerance (mm). Any two vertices
+that are less than this distance apart will be treated as the same vertex.
+The
+<option>-u</option>
+option specifies that vertex normals are desired.
+The
+<option>-v</option>
+option requests verbose output.
+The
+<option>-i</option>
+option requests the output file units to be inches (the default is mm).
+The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).
+The
+<option>-m</option>
+option will result in 'usemtl' statements in the output file. These statements are fictional
+(they do not refer to any material database). The materials named provide information about
+the material codes assigned to the objects in the BRL-CAD database. The material names will be
+of the form 'aircode_los_material', where
+<emphasis remap='I'>aircode</emphasis>
+is the code number for the air represented by that region, if it does represent air,
+otherwise this will be zero. The
+<emphasis remap='I'>los</emphasis>
+is the Line Of Sight thickness (0-100) assigned to the region, and the
+<emphasis remap='I'>material</emphasis>
+is the material code number assigned.
+The
+<option>-e</option>
+option specifies a file for receiving the error messages.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-obj -o sample.obj sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1997-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: cy-g.xml
===================================================================
--- cy-g.xml	(revision 0)
+++ cy-g.xml	(revision 0)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='cyg1'>
+<refmeta>
+<refentrytitle>CY-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>cy-g</refname>
+<refpurpose>Cyberware Echo file format to BRL-CAD converter</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>cy-g</command>    
+    <arg choice='plain'><replaceable>input_cy_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>cy-g</emphasis>
+converts the specified
+<emphasis remap='I'>input_cy_file</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. The input data must be Cyberware digitizer data in the Cyberware
+Echo (.cy) file format.  Support is limited to scans in cylindrical
+scan format.  The result of the conversion is a single
+<emphasis remap='I'>ARS</emphasis>
+(Arbitrary faceted solid) solid.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>cy-g sample.cy sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1998-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: patch/rpatch.xml
===================================================================
--- patch/rpatch.xml	(revision 0)
+++ patch/rpatch.xml	(revision 0)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='rpatch1'>
+<refmeta>
+<refentrytitle>RPATCH</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>rpatch</refname>
+<refpurpose>convert FASTGEN ASCII databases into a format suitable for</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>rpatch</command>    
+    <arg choice='opt'>-D </arg>
+    <arg choice='opt'>-3 </arg>
+    <arg choice='plain'><replaceable>&lt;</replaceable></arg>
+    <arg choice='plain'><replaceable>FASTGEN_FILE</replaceable></arg>
+    <arg choice='plain'><replaceable>&gt;</replaceable></arg>
+    <arg choice='plain'><replaceable>OUTPUT_FILE</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>This program reformats FASTGEN files to a form usable by
+<emphasis remap='I'>patch-g.</emphasis>
+The
+<option>-D</option>
+option handles type 3 components as donuts rather than triangles. The
+<option>-3</option>
+option reads FASTGEN3 format files (coordinates are each 10 columns wide).</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para><emphasis remap='I'>rpatch &lt; fastgen_file &gt; file.rpatch</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>The diagnostics are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>patch-g</refentrytitle><manvolnum>1</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>John R. Anderson</para>
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: patch/patch-g.xml
===================================================================
--- patch/patch-g.xml	(revision 0)
+++ patch/patch-g.xml	(revision 0)
@@ -0,0 +1,194 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='patchg1'>
+<refmeta>
+<refentrytitle>PATCH-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>patch-g</refname>
+<refpurpose>convert FASTGEN ASCII databases into binary MGED databases.</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>patch-g</command>    <arg choice='opt'><replaceable>options</replaceable></arg>
+    <arg choice='plain'><replaceable>output.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>This program converts FASTGEN geometry into BRL-CAD
+<citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+formats. FASTGEN is
+a modeling system used by the Air Force and Navy to create military target
+descriptions. FASTGEN databases consist of the following primitives which
+can be converted by
+<command>patch-g</command>
+: polygons, plates, boxes, wedges, cylinders, spheres, and rods.
+It is recommended that
+<command>patch-g</command>
+be run with the
+<option>-p</option>
+option for most uses.</para>
+
+<para><command>patch-g</command>
+requires that the FASTGEN file be run through the pre-processor
+<emphasis remap='I'>rpatch.</emphasis>
+This is achieved by executing
+<emphasis remap='I'>rpatch</emphasis>&lt;<emphasis remap='I'>fastgen_file</emphasis>&gt;<emphasis remap='I'>file.rpatch</emphasis>.
+Once this step is executed,
+<command>patch-g</command>
+can be used to convert the intermediate file into a binary
+<citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+".g" file.</para>
+
+<para><command>patch-g</command>
+will provide messages when encountering problems in the conversion of FASTGEN
+geometry. For further debugging information, the -d flag with levels 1-3 of
+debugging can be provided.</para>
+
+<para>The available options are:</para>
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><option>-T tolerance_distance</option></term>
+  <listitem>
+<para>The
+<emphasis remap='I'>tolerance_distance</emphasis>
+is specified in inches. Any two vertices within this distance
+from each other will be considered the same vertex.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-A perp_tolerance</option></term>
+  <listitem>
+<para>the
+<emphasis remap='I'>perp_tolerance</emphasis>
+is specified as the cosine of an angle (0.0 through 1.0). If the
+cosine of the angle between two vectors is less than the specified
+tolerance, then the vectors are considered perpendicular.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-x librt_debug_flag</option></term>
+  <listitem>
+<para>Specifies a flag for debugging the
+<emphasis remap='I'>librt</emphasis>
+package.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-X NMG_debug_flag</option></term>
+  <listitem>
+<para>Specifies a flag for NMG routine debugging.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-p</option></term>
+  <listitem>
+<para>Produce polysolid output rather than the default NMG solids.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-6</option></term>
+  <listitem>
+<para>Convert plate-mode triangles using ARB6 solids.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-f preprocessed_input_file</option></term>
+  <listitem>
+<para>Use the specified file as the input for conversion.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-i labels_file</option></term>
+  <listitem>
+<para>Specifies desired group names to override defaults.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-m materials_file</option></term>
+  <listitem>
+<para>Specifies material properties to be assigned to components.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-a</option></term>
+  <listitem>
+<para>Process phantom armor.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-n</option></term>
+  <listitem>
+<para>Process volume mode as plate mode.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-t title</option></term>
+  <listitem>
+<para>Specifies a title for the output model.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-o top_level_name</option></term>
+  <listitem>
+<para>Specifies a name for the top level object (default is
+<emphasis remap='B'>all</emphasis>
+).</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-r</option></term>
+  <listitem>
+<para>Reverse normals for plate mode triangles.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-c “X Y Z”</option></term>
+  <listitem>
+<para>Specifies centroid for some plate mode surface normal calculations.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-d debug_level</option></term>
+  <listitem>
+<para>Specifies a debug level (1-3).</para>
+  </listitem>
+  </varlistentry>
+</variablelist>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para><emphasis remap='I'>rpatch &lt; fastgen_file &gt; file.rpatch</emphasis>
+<!-- .br -->
+<emphasis remap='I'>patch-g -p -f file.rpatch  file.g</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>The diagnostics are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Bill Mermagen, Jr.</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1991-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: stl/g-stl.xml
===================================================================
--- stl/g-stl.xml	(revision 0)
+++ stl/g-stl.xml	(revision 0)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gstl1'>
+<refmeta>
+<refentrytitle>G-STL</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-stl</refname>
+<refpurpose>Stereolithography Translator (BRL-CAD to STL)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-stl</command><arg choice='opt'>-8 </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-D <replaceable>calculation_tolerance</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <group choice='opt'><arg choice='plain'>-o <replaceable>STL_file</replaceable></arg><arg choice='plain'>-m <replaceable>directory_name</replaceable></arg></group>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-stl</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the
+<emphasis remap='I'>stereolithography</emphasis>
+file format.
+The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances.
+The
+<option>-D</option>
+option specifies a calculational distance tolerance (mm). Any two vertices
+that are less than this distance apart will be treated as the same vertex.
+The
+<option>-v</option>
+option requests verbose output.
+The
+<option>-i</option>
+option requests the output file units to be inches (the default is mm).
+The
+<option>-b</option>
+option requests binary output (the default in ASCII).
+In the case of ASCII output, the region name is specified
+on the "solid" line of the STL file. In the case of binary output, all the regions are output
+as a single STL part.
+The
+<option>-8</option>
+option tells the facetizer to use the marching cubes algorithm.
+The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).
+The
+<option>-m</option>
+option specifies the name of a directory where the output files will be placed.
+In this case each region converted is written to a separate file
+and placed in this directory. The file names are constructed from the full path
+names of each region (path from the specified object to the region). Any "/" characters
+in the path name are replaced by "@" characters, and "." and white space are replaced by
+"_" characters. If the
+<option>-m</option>
+option is not specified, then all the
+regions are written to the same file. The
+<option>-o</option>
+and
+<option>-m</option>
+options are mutually exclusive.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-stl -o sample.stl sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2003-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: stl/stl-g.xml
===================================================================
--- stl/stl-g.xml	(revision 0)
+++ stl/stl-g.xml	(revision 0)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='stlg1'>
+<refmeta>
+<refentrytitle>STL-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>stl-g</refname>
+<refpurpose>Stereolithography Translator (STL to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>stl-g</command>    
+    <arg choice='opt'>-db </arg>
+    <arg choice='opt'>-i <replaceable>initial_ident</replaceable></arg>
+    <arg choice='opt'>-I <replaceable>constant_ident</replaceable></arg>
+    <arg choice='opt'>-m <replaceable>material_code</replaceable></arg>
+    <arg choice='opt'>-N <replaceable>forced_name</replaceable></arg>
+    <arg choice='opt'>-c <replaceable>units</replaceable></arg>
+    <arg choice='opt'>-t <replaceable>tolerance</replaceable></arg>
+    <arg choice='opt'>-x <replaceable>RT_DEBUG_FLAG</replaceable></arg>
+    <arg choice='plain'><replaceable>file.stl</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>stl-g</command>
+converts the specified
+<emphasis remap='I'>file.stl</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>file.g</emphasis>
+file. Use the
+<option>-b</option>
+option if you have a binary STL file (the default is ASCII).
+The
+<option>-d</option>
+option prints debugging information.
+The
+<option>-c</option>
+option specifies the units that are used in the STL file. The
+<emphasis remap='I'>units</emphasis>
+string may be "mm", "in", "ft", ... (default is "mm").
+The
+<option>-t</option>
+option specifies a tolerance distance (in mm) such that any two vertices
+within tolerance distance of each other are treated as the same vertex.
+The
+<option>-i</option>
+option sets the starting ident number for the regions created. As each
+new region is created, this number will be incremented before assigning
+the next ident number (conflicts with
+<option>-I</option>
+). The
+<option>-I</option>
+option sets a constant ident number that will be assigned to all the regions created (conflicts with
+<option>-i</option>
+).
+The
+<option>-m</option>
+option sets a material code that will be assigned to all the regions created (default is 1).
+The
+<option>-N</option>
+option sets a name for the resulting BRL-CAD object. STL files typically do not contain any
+object names.
+The
+<option>-x</option>
+option sets an RT debug flag (see raytrace.h).
+The
+<emphasis remap='I'>file.stl</emphasis>
+file is expected to be a stereolithography file.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>stl-g sample.stl sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1999-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: fast4-g.xml
===================================================================
--- fast4-g.xml	(revision 0)
+++ fast4-g.xml	(revision 0)
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='fast4g1'>
+<refmeta>
+<refentrytitle>FAST4-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>fast4-g</refname>
+<refpurpose>FASTGEN4 Translator (FASTGEN4 to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>fast4-g</command>    
+    <arg choice='opt'>-dwq </arg>
+    <arg choice='opt'>-o <replaceable>plot_file</replaceable></arg>
+    <arg choice='opt'>-m <replaceable>muves_warnings</replaceable></arg>
+    <arg choice='opt'>-c <replaceable>id_list</replaceable></arg>
+    <arg choice='opt'>-x <replaceable>RT_DEBUG_FLAG</replaceable></arg>
+    <arg choice='opt'>-b <replaceable>BU_DEBUG_FLAG</replaceable></arg>
+    <arg choice='plain'><replaceable>file.fastgen4</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>fast4-g</emphasis>
+converts the specified
+<emphasis remap='I'>file.fastgen4</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>file.g</emphasis>
+file.</para>
+
+<para>The
+<option>-d</option>
+option prints debugging information and the
+<option>-w</option>
+option prints warnings whenever an object is assigned a default name (no
+name specified in the FASTGEN4 file).</para>
+
+<para>The
+<option>-q</option>
+option requests quiet mode, so that nothing will be printed except errors.</para>
+
+<para>The
+<option>-b</option>
+option specifies a value for a debug flag for libbu and the
+<option>-x</option>
+option specifies a value for the librt debug flag.</para>
+
+<para>The
+<option>-o</option>
+option indicates that all CTRI and CQUAD elements that get processed should be output to the
+specified plot_file in libplot3 format.  This plot file can be viewed in MGED using the
+<emphasis remap='I'>overlay</emphasis>
+command.</para>
+
+<para>The
+<option>-m</option>
+option requests that information about any CHGCOMP and CBACKING elements be output in the specified
+<emphasis remap='I'>muves_warnings</emphasis>
+file.</para>
+
+<para>The
+<option>-c</option>
+option allows the user to specify a restricted set of components to process from the
+input file. The
+<emphasis remap='I'>id_list</emphasis>
+may be a comma separated list of ident numbers and ranges. For example,
+<option>-c 3002,5678,9213,1002-1100</option>
+will convert only the regions with idents of 3002,5678,9213, and everything from 1002 through 1100.</para>
+
+<para>If you have a FASTGEN2 or FASTGEN3 format file, they can be converted by processing them with
+<emphasis remap='I'>rpatch</emphasis>
+and then providing the resulting rpatch file to the
+<emphasis remap='I'>patch-g</emphasis>
+converter.  See their respective manual pages for more information.</para>
+
+<para>The
+<emphasis remap='I'>file.fastgen4</emphasis>
+file is expected to be in the FASTGEN 4.1 format as defined in the
+FASTGEN 4.1 User Manual.</para>
+
+<para><emphasis remap='I'>CCONE1, CCONE2,</emphasis>
+and
+<emphasis remap='I'>CCONE3</emphasis>
+elements are converted to BRL-CAD truncated right cylinders
+<emphasis remap='I'>(TRC). CHEX2</emphasis>
+elements are converted to BRL-CAD arbitrary convex polyhedrons
+<emphasis remap='I'>(ARB8).</emphasis>
+<emphasis remap='I'>CLINE</emphasis>
+elements are converted to BRL-CAD cline solids.
+<emphasis remap='I'>CQUAD</emphasis>
+,
+<emphasis remap='I'>CTRI</emphasis>
+, and
+<emphasis remap='I'>CHEX1</emphasis>
+elements are converted to faces of a BRL-CAD BOT (Bag Of Triangles).
+<emphasis remap='I'>CSPHERE</emphasis>
+elements are converted to BRL-CAD sphere
+<emphasis remap='I'>(SPH)</emphasis>
+solids. BRL-CAD region ident numbers are assigned by combining the
+FASTGEN4 group and component numbers:</para>
+
+<literallayout remap='.nf'>
+	ident = group x 1000 + component
+</literallayout> <!-- .fi -->
+
+<para>and object names are assigned from the FASTGEN4
+<emphasis remap='I'>$NAME</emphasis>
+elements using an algorithm to create unique BRL-CAD names.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>fast4-g sample.fastgen4 sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>rpatch</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>patch-g</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+<!-- .br -->
+<emphasis remap='I'>FASTGEN 4.1 User's Manual,</emphasis>
+XRESV Tech Note 94-01,
+Hugh Griffis and Maty Lentz,
+April 1994</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: poly-bot.xml
===================================================================
--- poly-bot.xml	(revision 0)
+++ poly-bot.xml	(revision 0)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='polybot1'>
+<refmeta>
+<refentrytitle>POLY-BOT</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>poly-bot</refname>
+<refpurpose>Polysolid to BOT translator</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>poly-bot</command>    
+    <arg choice='opt'><arg choice='plain'><replaceable>input_file.g</replaceable></arg><arg choice='plain'><replaceable>output_file.g</replaceable></arg></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>poly-bot</emphasis>
+converts all the polysolids in the specified
+<emphasis remap='I'>input_file.g</emphasis>
+(or standard input, if no files are specified)
+to
+<emphasis remap='I'>BOT</emphasis>
+solids and writes them to the
+<emphasis remap='I'>output_file.g</emphasis>
+( or standard out, if no files are specified on the command line).
+All other records (except
+<emphasis remap='I'>FREE</emphasis>
+records) are copied verbatim.
+This command will only work with database version "v4" (BRL-CAD releases 5.3 and earlier).</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>poly-bot polys.g bots.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2000-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: euclid/euclid-g.xml
===================================================================
--- euclid/euclid-g.xml	(revision 0)
+++ euclid/euclid-g.xml	(revision 0)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='euclidg1'>
+<refmeta>
+<refentrytitle>EUCLID-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>euclid-g</refname>
+<refpurpose>EUCLID Translator (EUCLID to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>euclid-g</command>    
+    <arg choice='plain'><replaceable>euclid_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>euclid-g</emphasis>
+converts the specified
+<emphasis remap='I'>euclid_file</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. The
+<emphasis remap='I'>euclid_file</emphasis>
+is expected to be an ASCII file format that is the "decoded" version
+of the Euclid file. The decoded file represents each object as a series
+of polygonal faces. Each face may be one of either a simple face (no holes),
+a complex face (contains at least one hole), or a simple hole.
+This converter creates a region for each object ID number by unioning
+together all the objects with the same ID number.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>euclid-g sample.euclid sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1993-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: euclid/g-euclid.xml
===================================================================
--- euclid/g-euclid.xml	(revision 0)
+++ euclid/g-euclid.xml	(revision 0)
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='geuclid1'>
+<refmeta>
+<refentrytitle>G-EUCLID</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-euclid</refname>
+<refpurpose>EUCLID Translator (BRL-CAD to EUCLID)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-euclid</command>    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>euclid_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-euclid</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the "decoded"
+<emphasis remap='I'>EUCLID</emphasis>
+format.
+The decoded file represents each object as a series
+of polygonal faces. Each face may be one of either a simple face (no holes),
+a complex face (contains at least one hole), or a simple hole.
+This converter creates a region for each object ID number by unioning
+together all the objects with the same ID number. The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances. The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-euclid -o sample.euclid sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: asc/asc2pix.xml
===================================================================
--- asc/asc2pix.xml	(revision 0)
+++ asc/asc2pix.xml	(revision 0)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='asc2pix1'>
+<refmeta>
+<refentrytitle>ASC2PIX</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>pix2asc</refname>
+<refname>asc2pix</refname>
+<refpurpose>encode and decode color pixel files</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>pix2asc</command>    
+    <arg choice='plain'><replaceable>&lt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.pix</replaceable></arg>
+    <arg choice='plain'><replaceable>&gt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+</cmdsynopsis>
+<cmdsynopsis>
+  <command>asc2pix</command>    
+    <arg choice='plain'><replaceable>&lt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+    <arg choice='plain'><replaceable>&gt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.pix</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>Pix2asc</emphasis>
+and
+<command>asc2pix</command>
+are simple filters which convert color
+<emphasis remap='I'>pix(5)</emphasis>
+files from their binary form to a portable ASCII form, and back.
+<emphasis remap='I'>Pix2asc</emphasis>
+reads the binary file on standard in and writes ASCII on standard out.
+<emphasis remap='I'>Asc2pix</emphasis>
+does the reverse.</para>
+
+<para>The binary file consists of a sequence
+of three-tuples of
+<emphasis remap='B'>unsigned chars</emphasis>
+representing the
+red, green, and blue intensities for each pixel.
+The ASCII version of the file has
+one RGB pixel per newline-terminated line, with each
+pixel represented as six hexadecimal digits.</para>
+
+<para>When moving
+<emphasis remap='I'>pix(5)</emphasis>
+files between UNIX systems
+via tape (see
+<emphasis remap='I'>tar(1)</emphasis>
+and
+<emphasis remap='I'>cpio(1))</emphasis>
+or via network (see
+<emphasis remap='I'>rcp(1)</emphasis>
+and
+<emphasis remap='I'>ftp(1)),</emphasis>
+this conversion to ASCII is unnecessary,
+as all UNIX files are byte streams, regardless of the underlying hardware.
+However, when transporting images to non-UNIX machines,
+these tools are invaluable.
+Note that
+<emphasis remap='I'>rt(1)</emphasis>
+can directly generate the ASCII form of an image file using the
+<option>-O</option>
+flag, allowing it to be easily used on non-UNIX systems.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>pix</refentrytitle><manvolnum>5</manvolnum></citerefentry>, <citerefentry><refentrytitle>bw</refentrytitle><manvolnum>5</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2012-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: asc/pix2asc.xml
===================================================================
--- asc/pix2asc.xml	(revision 0)
+++ asc/pix2asc.xml	(revision 0)
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='pix2asc1'>
+<refmeta>
+<refentrytitle>PIX2ASC</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>pix2asc</refname>
+<refname>asc2pix</refname>
+<refpurpose>encode and decode color pixel files</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>pix2asc</command>    
+    <arg choice='plain'><replaceable>&lt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.pix</replaceable></arg>
+    <arg choice='plain'><replaceable>&gt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+</cmdsynopsis>
+<cmdsynopsis>
+  <command>asc2pix</command>    
+    <arg choice='plain'><replaceable>&lt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.acs</replaceable></arg>
+    <arg choice='plain'><replaceable>&gt;</replaceable></arg>
+    <arg choice='plain'><replaceable>file.pix</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>Pix2asc</emphasis>
+and
+<command>asc2pix</command>
+are simple filters which convert color
+<emphasis remap='I'>pix(5)</emphasis>
+files from their binary form to a portable ASCII form, and back.
+<emphasis remap='I'>Pix2asc</emphasis>
+reads the binary file on standard in and writes ASCII on standard out.
+<emphasis remap='I'>Asc2pix</emphasis>
+does the reverse.</para>
+
+<para>The binary file consists of a sequence
+of three-tuples of
+<emphasis remap='B'>unsigned chars</emphasis>
+representing the
+red, green, and blue intensities for each pixel.
+The ASCII version of the file has
+one RGB pixel per newline-terminated line, with each
+pixel represented as six hexadecimal digits.</para>
+
+<para>When moving
+<emphasis remap='I'>pix(5)</emphasis>
+files between UNIX systems
+via tape (see
+<emphasis remap='I'>tar(1)</emphasis>
+and
+<emphasis remap='I'>cpio(1))</emphasis>
+or via network (see
+<emphasis remap='I'>rcp(1)</emphasis>
+and
+<emphasis remap='I'>ftp(1)),</emphasis>
+this conversion to ASCII is unnecessary,
+as all UNIX files are byte streams, regardless of the underlying hardware.
+However, when transporting images to non-UNIX machines,
+these tools are invaluable.
+Note that
+<citerefentry><refentrytitle>rt</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+can directly generate the ASCII form of an image file using the
+<option>-O</option>
+flag, allowing it to be easily used on non-UNIX systems.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>pix</refentrytitle><manvolnum>5</manvolnum></citerefentry>, <citerefentry><refentrytitle>bw</refentrytitle><manvolnum>5</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Michael John Muuss</para>
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1989-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: asc/asc2g.xml
===================================================================
--- asc/asc2g.xml	(revision 0)
+++ asc/asc2g.xml	(revision 0)
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='asc2g1'>
+<refmeta>
+<refentrytitle>ASC2G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g2asc</refname>
+<refname>asc2g</refname>
+<refpurpose>convert between binary and ASCII mged geometry databases.</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g2asc</command>    
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+</cmdsynopsis>
+<cmdsynopsis>
+  <command>asc2g</command>    
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>The local machine binary representation
+of an
+<emphasis remap='I'>mged(1)</emphasis>
+database is inherently non-portable.
+<command>g2asc</command>
+and
+<command>asc2g</command>
+are simple filters which convert between
+the binary form and an ASCII representation.
+Any warning messages are written to standard error.</para>
+
+<para>The ASCII representation of BRL-CAD geometry databases is not a fixed
+format and is allowed to change without deprecation notice.  In
+general, this will not occur any more frequently than the binary
+geometry database format changes, though both are open specifications.
+Regardless, the ASCII representation is subject to change without
+notice and should not be relied upon by external codes.  Currently,
+the ASCII representation is a Tcl script that is parsed by a
+simplified geometry command interpreter.</para>
+
+<para><command>g2asc</command>
+and
+<command>asc2g</command>
+are typically used to convert binary
+<emphasis remap='I'>mged(1)</emphasis>
+files to an ASCII format.  This was traditionally performed so the
+files could be transferred to another machine in a portable format.
+Although no longer necessary for the current binary geometry database
+files that are created by mged ("v5" format), the g2asc conversion
+process is still necessary if manipulating older ("v4" format)
+geometry database files.  On the local machine, files are converted to
+ASCII using
+<emphasis remap='I'>g2asc(1),</emphasis>
+then transferred to the remote machine.  On the remote machine, the files
+are then converted back to the binary representation for that machine using
+<emphasis remap='I'>asc2g(1).</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para><emphasis remap='I'>g2asc file.g file.asc</emphasis>
+<!-- .br -->
+scp file.asc remote:file.asc
+<!-- .br -->
+ssh remote "asc2g file.asc file.g"</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>The diagnostics are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Charles Michael Kennedy
+<!-- .br -->
+Michael John Muuss</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: asc/g2asc.xml
===================================================================
--- asc/g2asc.xml	(revision 0)
+++ asc/g2asc.xml	(revision 0)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='g2asc1'>
+<refmeta>
+<refentrytitle>G2ASC</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g2asc</refname>
+<refname>asc2g</refname>
+<refpurpose>convert between binary and ASCII mged geometry databases.</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g2asc</command>    
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+</cmdsynopsis>
+<cmdsynopsis>
+  <command>asc2g</command>    
+    <arg choice='plain'><replaceable>file.asc</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>The local machine binary representation
+of an
+<emphasis remap='I'>mged(1)</emphasis>
+database is inherently non-portable.
+<command>g2asc</command>
+and
+<command>asc2g</command>
+are simple filters which convert between
+the binary form and an ASCII representation.
+Any warning messages are written to standard error.</para>
+
+<para>The ASCII representation of BRL-CAD geometry databases is not a fixed
+format and is allowed to change without deprecation notice.  In
+general, this will not occur any more frequently than the binary
+geometry database format changes, though both are open specifications.
+Regardless, the ASCII representation is subject to change without
+notice and should not be relied upon by external codes.  Currently,
+the ASCII representation is a Tcl script that is parsed by a
+simplified geometry command interpreter.</para>
+
+<para><command>g2asc</command>
+and
+<command>asc2g</command>
+are typically used to convert binary
+<emphasis remap='I'>mged(1)</emphasis>
+files to an ASCII format.  This was traditionally performed so the
+files could be transferred to another machine in a portable format.
+Although no longer necessary for the current binary geometry database
+files that are created by mged ("v5" format), the g2asc conversion
+process is still necessary if manipulating older ("v4" format)
+geometry database files.  On the local machine, files are converted to
+ASCII using
+<emphasis remap='I'>g2asc(1),</emphasis>
+then transferred to the remote machine.  On the remote machine, the files
+are then converted back to the binary representation for that machine using
+<emphasis remap='I'>asc2g(1).</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para><emphasis remap='I'>g2asc file.g file.asc</emphasis>
+<!-- .br -->
+scp file.asc remote:file.asc
+<!-- .br -->
+ssh remote "asc2g file.asc file.g"</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>The diagnostics are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Charles Michael Kennedy
+<!-- .br -->
+Michael John Muuss</para>
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1989-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: viewpoint-g.xml
===================================================================
--- viewpoint-g.xml	(revision 0)
+++ viewpoint-g.xml	(revision 0)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='viewpointg1'>
+<refmeta>
+<refentrytitle>VIEWPOINT-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>viewpoint-g</refname>
+<refpurpose>VIEWPOINT Translator (VIEWPOINT to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>viewpoint-g</command>    
+    <arg choice='opt'>-t <replaceable>tolerance</replaceable></arg>
+    <arg choice='plain'>-c <replaceable>input_coordinates_file</replaceable></arg>
+    <arg choice='plain'>-e <replaceable>input_elements_file</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>viewpoint-g</emphasis>
+converts the specified input files to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. The
+<emphasis remap='I'>tolerance</emphasis>
+provided is the maximum distance (in mm) between two
+vertices at which they will be considered to be the same vertex. The
+<emphasis remap='I'>input_coordinates_file</emphasis>
+and the
+<emphasis remap='I'>input_elements_file</emphasis>
+are expected to be in the
+<emphasis remap='I'>VIEWPOINT</emphasis>
+triangulated format as provided by
+<emphasis remap='I'>Viewpoint Datalabs.</emphasis>
+In this format each object is represented as a group of
+elements, and each element is a group of triangular facets.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>viewpoint-g -e viewpoint.elems -c viewpoint.coords -o sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<literallayout remap='.nf'>
+Viewpoint Dataset Catalog
+Viewpoint Datalabs Int'l
+625 South State Street
+Orem, UT     84058
+(801)229-3000
+</literallayout> <!-- .fi -->
+
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: conv-vg2g.xml
===================================================================
--- conv-vg2g.xml	(revision 0)
+++ conv-vg2g.xml	(revision 0)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='convvg2g1'>
+<refmeta>
+<refentrytitle>CONV-VG2G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>conv-vg2g</refname>
+<refpurpose>upgrade old to new format binary MGED database</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>conv-vg2g</command>    
+    <arg choice='plain'><replaceable>file.vg</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>Conv-vg2g</emphasis>
+converts several older forms of binary
+<citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+databases to the current form.</para>
+
+<para>The conversion from version 3 to version 4 (the current version)
+is fairly straightforward.
+Conversion from older versions requires additional information,
+for which the user is prompted.  The units of the database must
+be specified as:
+1=mm, 2=cm, 3=meters, 4=inches, 5=feet.
+A title for the database is also requested.</para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>brlcad</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>libged</refentrytitle><manvolnum>3</manvolnum></citerefentry></para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory,
+and usually indicate errors in the input database.
+It may be possible to rescue a damaged old database
+by suitably modifying the source code to the converter.</para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Keith A. Applin</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1989-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: bot_dump.xml
===================================================================
--- bot_dump.xml	(revision 0)
+++ bot_dump.xml	(revision 0)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='bot_dump1'>
+<refmeta>
+<refentrytitle>BOT_DUMP</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>bot_dump</refname>
+<refpurpose>export polygonal BoT primitives without performing evaluation</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>bot_dump</command>    <arg choice='opt'>-b </arg>
+    <arg choice='opt'>-n </arg>
+    <arg choice='opt'>-m <replaceable>directory</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>file</replaceable></arg>
+    <group choice='opt'><arg choice='plain'>-t <replaceable>dxf</replaceable></arg><arg choice='plain'><replaceable>obj</replaceable></arg><arg choice='plain'><replaceable>sat</replaceable></arg><arg choice='plain'><replaceable>stl</replaceable></arg></group>
+    <arg choice='opt'>-u <replaceable>units</replaceable></arg>
+    <arg choice='opt'>-v </arg>
+    <arg choice='plain'><replaceable>geom.g</replaceable></arg>
+    <arg choice='opt'><arg choice='plain'><replaceable>bot1</replaceable></arg><arg choice='plain' rep='repeat'><replaceable>bot2</replaceable></arg></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>bot_dump</command></para>
+
+<para>The
+<option>-b</option>
+option may be specified to indicate that the output file should be in
+a binary format (e.g., for formats that support ascii and binary
+formats like stl).</para>
+
+<para>If the
+<option>-n</option>
+option is specified, BoT surface normals will be included in the output
+of
+<emphasis remap='I'>obj</emphasis>
+files. This option is specific to
+<emphasis remap='I'>obj</emphasis>
+file generation since normal vector outputs are already an integral
+part of the
+<emphasis remap='I'>stl</emphasis>
+file outputs and both the
+<emphasis remap='I'>dxf</emphasis>
+and
+<emphasis remap='I'>sat</emphasis>
+file formats do not support or require surface normal generation.</para>
+
+<para>If the
+<option>-m</option>
+option is specified, then BoTs will be output to the directory name
+specified with one BoT per file.</para>
+
+<para>The
+<option>-o</option>
+option specifies what output file the BoT data should be dumped to.</para>
+
+<para>The
+<option>-t</option>
+is used to specify the desired output file type.  The default output
+type is STL in ASCII format.</para>
+
+<para>The
+<option>-u</option>
+option takes a units string that indicates the unit conversion to
+perform during output (converting from internal millimeter values to
+the unit type specified).</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>bot_dump  -o some_bot_dump.dxf  -t dxf  sample.g  some_bot</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2008-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-acad.xml
===================================================================
--- g-acad.xml	(revision 0)
+++ g-acad.xml	(revision 0)
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gacad1'>
+<refmeta>
+<refentrytitle>G-ACAD</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-acad</refname>
+<refpurpose>Convert from BRL-CAD format to Lockheed Martin's ACAD format</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-acad</command>    <arg choice='opt'>-vi </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-e <replaceable>error_file</replaceable></arg>
+    <arg choice='opt'>-D <replaceable>calculation_tolerance</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>ACAD_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-acad</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the in-house Lockheed Martin's Advanced Computer-Aided Design
+<emphasis remap='I'>(ACAD)</emphasis>
+file format (formerly the General Dynamics ACAD file format).  This converter has NOT connected with Autodesk Inc.'s AutoCAD file format.
+The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances.
+The
+<option>-D</option>
+option specifies a calculational distance tolerance (mm). Any two vertices
+that are less than this distance apart will be treated as the same vertex.
+The
+<option>-v</option>
+option requests verbose output.
+The
+<option>-i</option>
+option requests the output file units to be inches (the default is mm).
+The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).
+The
+<option>-e</option>
+option specifies a file for receiving the error messages.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-acad -o sample.ACAD sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1997-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(revision 53835)
+++ CMakeLists.txt	(working copy)
@@ -1,18 +1,61 @@
 set(docbook_man1_EN
+  asc/g2asc.xml
+  asc/asc2g.xml
+  asc/pix2asc.xml
+  asc/asc2pix.xml
   asc2dsp.xml
+  bot_dump.xml
+  bot_shell-vtk.xml
   bwscale.xml
   coil.xml
+  comgeom/comgeom-g.xml
+  conv-vg2g.xml
+  cy-g.xml
   db.xml
+  dbclean.xml
+  dbupgrade.xml
+  dxf/dxf-g.xml
+  dxf/g-dxf.xml
+  enf-g.xml
+  euclid/euclid-g.xml
+  euclid/g-euclid.xml
+  fast4-g.xml
+  g-acad.xml
+  g-egg.xml
+  g-nff.xml
+  g-obj.xml
+  g-shell-rect.xml
+  g-var.xml
+  g-vrml.xml
+  g-x3d.xml
   gqa.xml
+  iges/g-iges.xml
+  iges/iges-g.xml
   mged.xml
+  nastran-g.xml
   nirt.xml
+  nmg/asc-nmg.xml
+  nmg/g-nmg.xml
+  nmg/nmg-bot.xml
+  nmg/nmg-rib.xml
   obj-g.xml
+  patch/patch-g.xml
+  patch/rpatch.xml
+  ply-g.xml
+  poly-bot.xml
+  proe-g.xml
   rt.xml
   rtarea.xml
   rtcheck.xml
   rtedge.xml
   rtwizard.xml
+  stl/g-stl.xml
+  stl/stl-g.xml
+  tankill/g-tankill.xml
+  tankill/tankill-g.xml
   tire.xml
+  vdeck/vdeck.xml
+  viewpoint-g.xml
   )
 
 DOCBOOK_TO_HTML(man1 docbook_man1_EN html/man1/en "")
Index: nmg/nmg-bot.xml
===================================================================
--- nmg/nmg-bot.xml	(revision 0)
+++ nmg/nmg-bot.xml	(revision 0)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='nmgbot1'>
+<refmeta>
+<refentrytitle>NMG-BOT</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>nmg-bot</refname>
+<refpurpose>convert all NMG solids in a model to BoT solids</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>nmg-bot</command>    
+    <arg choice='opt'>-v </arg>
+    <arg choice='plain'><replaceable>in_file.g</replaceable></arg>
+    <arg choice='plain'><replaceable>out_file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>nmg-bot</command>
+reads the
+<emphasis remap='I'>in_file.g</emphasis>
+and whenever an NMG solid is encountered, it is converted to the BoT solid format
+and written to
+<emphasis remap='I'>out_file.g.</emphasis>
+All other objects in
+<emphasis remap='I'>in_file.g</emphasis>
+are copied to
+<emphasis remap='I'>out_file.g</emphasis>
+unchanged.
+If the
+<option>-v</option>
+option is specified, then a message is displayed for each NMG converted to BoT format.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>nmg-bot  file_with_nmgs.g  file_with_BoTs.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1998-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: nmg/asc-nmg.xml
===================================================================
--- nmg/asc-nmg.xml	(revision 0)
+++ nmg/asc-nmg.xml	(revision 0)
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='ascnmg1'>
+<refmeta>
+<refentrytitle>ASC-NMG</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>asc-nmg</refname>
+<refpurpose>ascii-to-NMG converter</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>asc-nmg</command>    
+    <arg choice='plain'><replaceable>ascii_file</replaceable></arg>
+    <arg choice='plain'><replaceable>nmg.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>asc-nmg</emphasis>
+converts the specified
+<emphasis remap='I'>ascii_file</emphasis>
+(not a .asc geometry database) to a binary BRL-CAD
+<emphasis remap='I'>nmg.g</emphasis>
+geometry database file containing NMG objects. The
+<emphasis remap='I'>ascii_file</emphasis>
+is expected to contain lines of the following forms:</para>
+
+<para>To start a new outer loop for a face:</para>
+
+<literallayout remap='.nf'>
+	l
+</literallayout> <!-- .fi -->
+
+<para>To start a new "hole" loop in the current face:</para>
+
+<literallayout remap='.nf'>
+	l hole
+</literallayout> <!-- .fi -->
+
+<para>To indicate a vertex in the current loop:</para>
+
+<literallayout remap='.nf'>
+	v# x y z
+</literallayout> <!-- .fi -->
+
+<para>where # is the vertex number and x, y, and z are the coordinates
+of that vertex.</para>
+
+<para>To extrude a face:</para>
+
+<literallayout remap='.nf'>
+	e x y z
+</literallayout> <!-- .fi -->
+
+<para>where x, y, and z compose the extrusion vector for the face.</para>
+
+<para>If an extrusion vector is specified, then the first face in the
+NMG objects list of faces
+will be extruded. This is intended for cases where only one face
+is described and then extruded to form a solid. Supplying an extrusion
+vector when more than one face is described may produce erroneous results.
+A solid may be built by extruding a face or by building enough faces to
+produce a closed shell. Each execution of
+<command>asc-nmg</command>
+will produce a single NMG object.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para>If the file
+<emphasis remap='I'>ascii_file</emphasis>
+contains the following:</para>
+
+<literallayout remap='.nf'>
+l
+	e	-1 0 0
+	v0	1 -1 -1
+	v1	1 1 -1
+	v2	1 1 0
+	v3	1 0 0
+	v4	1 0 1
+	v5	1 -1 1
+</literallayout> <!-- .fi -->
+
+<para>Then, the command:</para>
+
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>asc-nmg ascii_file sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+
+<para>will produce an 'L'-shaped NMG solid to the sample.g database file.</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: nmg/g-nmg.xml
===================================================================
--- nmg/g-nmg.xml	(revision 0)
+++ nmg/g-nmg.xml	(revision 0)
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gnmg1'>
+<refmeta>
+<refentrytitle>G-NMG</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-nmg</refname>
+<refpurpose>Perform Boolean evaluations to produce NMG objects</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-nmg</command>    
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-b </arg>
+    <arg choice='opt'>-t <replaceable>calc_dist_tol</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tess_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tess_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tess_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>outfile.g</replaceable></arg>
+    <arg choice='plain'><replaceable>infile.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>g-nmg</command>
+performs the Boolean operations in the specified
+<emphasis remap='I'>object(s)</emphasis>
+and writes the resulting NMG primitives (or BOT primitives, if the
+<option>-b</option>
+option is specified) to
+<emphasis remap='I'>outfile.g</emphasis>
+or to
+<emphasis remap='I'>stdout</emphasis>
+if the
+<option>-o</option>
+option is not used.</para>
+
+<para>The following options are available:</para>
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><option>-a abs_tess_tol</option></term>
+  <listitem>
+<para>Specify an absolute tessellation tolerance (in millimeters).
+This requires that the maximum absolute error from the tessellated surface to the actual
+surface must not be greater than
+<emphasis remap='I'>abs_tess_tol.</emphasis></para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-b</option></term>
+  <listitem>
+<para>Convert the results to a BOT primitive (triangle representation) instead of leaving it as an NMG.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-n norm_tess_tol</option></term>
+  <listitem>
+<para>Specify a surface normal error tolerance (in degrees) for the tessellation.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-o outfile.g</option></term>
+  <listitem>
+<para>Specify the name of the file to be created.  This should not be the same as the input file.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-r rel_tess_tol</option></term>
+  <listitem>
+<para>Specify a relative error tolerance. This effectively
+sets an absolute tolerance for each primitive solid by multiplying the
+overall size of the solid by
+<emphasis remap='I'>rel_tess_tol.</emphasis>
+This allows small objects to be tessellated with small tolerances, while large objects are tessellated with large tolerances.
+For example, specifying
+<option>-r 0.1</option>
+when tesselating an object 2m in size, will result in a tolerance of .2m (2.0 * 0.1).
+The same option will cause a 5cm object to be tesselated with a tolerance of 0.5cm.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-t calc_dist_tol</option></term>
+  <listitem>
+<para>Specify a calculational distance tolerance (in millimeters).
+This tolerance is used to distinguish neighboring vertices.
+Any two vertices less than this tolerance distance apart will be considered the same vertex.
+The default value is 0.005mm.
+Prior to performing the Boolean operations for each region, the involved primitive solids
+are converted to a planar facetted approximation and stored as NMG solids. This tessellation
+can be controlled using the tessellation tolerances.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-v</option></term>
+  <listitem>
+<para>Produce copious progress information.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-x</option></term>
+  <listitem>
+<para>Set librt debug flags.
+The definitions of these flags may be found in
+<emphasis remap='I'>raytrace.h</emphasis></para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-X</option></term>
+  <listitem>
+<para>Set NMG routines debug flags.
+The definitions of these flags may be found in
+<emphasis remap='I'>h/nmg.h.</emphasis></para>
+  </listitem>
+  </varlistentry>
+</variablelist>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-nmg -o shell.g sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='bugs'><title>BUGS</title>
+<para>Boolean operations under finite precision arithmetic are not guaranteed to be solvable.  As a result this command can fail.  Scaling geometry adjusting tolerance values, and restructuring the boolean tree will often result in a successful tesselation.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1998-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: nmg/nmg-rib.xml
===================================================================
--- nmg/nmg-rib.xml	(revision 0)
+++ nmg/nmg-rib.xml	(revision 0)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='nmgrib1'>
+<refmeta>
+<refentrytitle>NMG-RIB</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>nmg-rib</refname>
+<refpurpose>Convert polygonal NMG to Renderman Interface Bytestream (RIB)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>nmg-rib</command>    
+    <arg choice='opt'>-t </arg>
+    <arg choice='plain' rep='repeat'><replaceable>database.nmgnmg_solid</replaceable></arg>
+    
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>The
+<command>nmg-rib</command>
+program
+reads the geometry database
+<emphasis remap='I'>database.nmg</emphasis>
+and converts the named polygonal NMG solids to RIB format polygons.
+If the
+<option>-t</option>
+option is given, the NMG solid will be triangulated first.
+If NMG a vertexuse normal is present for a vertexuse, it is used as the RIB
+vertex normal.  Otherwise, the NMG face normal is used.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='.nf'>
+% <emphasis remap='B'>mged box.g</emphasis>
+BRL-CAD Release 4.1   Graphics Editor (MGED)
+    Tue Dec 15 15:49:30 EST 1992, Compilation 9
+    stay@wolf:/m/dist4.1/mged
+
+mged&gt; <emphasis remap='B'>l box.s</emphasis>
+box.s:  ARB8
+	1 (0.5, -0.5, -0.5)
+	2 (0.5, 0.5, -0.5)
+	3 (0.5, 0.5, 0.5)
+	4 (0.5, -0.5, 0.5)
+	5 (-0.5, -0.5, -0.5)
+	6 (-0.5, 0.5, -0.5)
+	7 (-0.5, 0.5, 0.5)
+	8 (-0.5, -0.5, 0.5)
+mged&gt; <emphasis remap='B'>facetize box.nmg box.s</emphasis>
+facetize:  tessellating primitives with tolerances a=0, r=0.01, n=0
+facetize:  evaluating Boolean expressions
+facetize:  converting NMG to database format
+facetize:  wrote 6.38 Kbytes to database
+mged&gt; <emphasis remap='B'>q</emphasis>
+% <emphasis remap='B'>nmg-rib box.g box.nmg</emphasis>
+Polygon "P" [ -0.5 -0.5 0.5  0.5 -0.5 0.5  0.5 0.5 0.5  -0.5 0.5 0.5   ] "N" [ 0 0 1  0 0 1  0 0 1  0 0 1   ]
+Polygon "P" [ 0.5 0.5 -0.5  0.5 -0.5 -0.5  -0.5 -0.5 -0.5  -0.5 0.5 -0.5   ] "N" [ 0 0 -1  0 0 -1  0 0 -1  0 0 -1   ]
+Polygon "P" [ 0.5 0.5 0.5  0.5 0.5 -0.5  -0.5 0.5 -0.5  -0.5 0.5 0.5   ] "N" [ 0 1 0  0 1 0  0 1 0  0 1 0   ]
+Polygon "P" [ -0.5 -0.5 -0.5  0.5 -0.5 -0.5  0.5 -0.5 0.5  -0.5 -0.5 0.5   ] "N" [ 0 -1 0  0 -1 0  0 -1 0  0 -1 0   ]
+Polygon "P" [ -0.5 -0.5 -0.5  -0.5 -0.5 0.5  -0.5 0.5 0.5  -0.5 0.5 -0.5   ] "N" [ -1 0 0  -1 0 0  -1 0 0  -1 0 0   ]
+Polygon "P" [ 0.5 -0.5 0.5  0.5 -0.5 -0.5  0.5 0.5 -0.5  0.5 0.5 0.5   ] "N" [ 1 0 0  1 0 0  1 0 0  1 0 0   ]
+%
+
+</literallayout></refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Lee A. Butler</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-shell-rect.xml
===================================================================
--- g-shell-rect.xml	(revision 0)
+++ g-shell-rect.xml	(revision 0)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gshellrect1'>
+<refmeta>
+<refentrytitle>G-SHELL-RECT</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-shell-rect</refname>
+<refpurpose>Produce triangulated shell from BRL-CAD model</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-shell-rect</command>    
+    <arg choice='opt'>-d <replaceable>debug_level</replaceable></arg>
+    <arg choice='opt'>-n </arg>
+    <arg choice='opt'>-g <replaceable>cell_size</replaceable></arg>
+    <arg choice='opt'>-i <replaceable>initial_ray_dir</replaceable></arg>
+    <arg choice='opt'>-d <replaceable>debug_level</replaceable></arg>
+    <arg choice='plain'>-o <replaceable>brlcad_output_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-shell-rect</emphasis>
+converts the specified
+<emphasis remap='I'>objects(s)</emphasis>
+from a BRL-CAD model
+<emphasis remap='I'>database.g</emphasis>
+to a single NMG solid using raytracing. Rays are fired in a uniform grid.
+The direction for the first set of rays is chosen by calculating
+the presented area of the bounding box of the
+<emphasis remap='I'>object(s)</emphasis>
+and selecting the direction with the largest area. The user may override this
+by specifying a desired initial ray direction using the
+<option>-i</option>
+option (see below).
+The initial shell is constructed using only the first and last
+intersections with the
+<emphasis remap='I'>object(s).</emphasis>
+This will typically result in some rather large faces with normals at right angles
+to the ray direction. Unless the
+<option>-n</option>
+option is specified, these faces are then subdivided (according to the
+<emphasis remap='I'>cell_size</emphasis>
+) and additional rays fired from the other two directions are used to refine their
+shape.
+The resulting NMG solid
+will be named
+<emphasis remap='I'>shell</emphasis>
+and will be written to the specified
+<emphasis remap='I'>brlcad_output_file.</emphasis></para>
+
+
+<para>The following command line options are recognized:</para>
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><option>-g </option><emphasis remap='I'>cell_size</emphasis></term>
+  <listitem>
+<para>Specify the dimensions (in millimeters) of the grid spacing.  The default is 50mm.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-i </option><emphasis remap='I'>initial_ray_dir</emphasis></term>
+  <listitem>
+<para>Specify the initial ray direction.  Valid values are X, Y, or Z.
+The best results are usually obtained by raytracing in the direction that produces the
+most hits first.</para>
+
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-d </option><emphasis remap='I'>debug_level</emphasis></term>
+  <listitem>
+<para>Set the debugging level.  Higher values produce more debugging information.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-n</option></term>
+  <listitem>
+<para>Suppresses the refinement stage (firing rays from the secondary and tertiary axis directions).</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-o </option><emphasis remap='I'>output.g</emphasis></term>
+  <listitem>
+<para>Specifies the name of the BRL-CAD geometry file to create.</para>
+  </listitem>
+  </varlistentry>
+</variablelist>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-shell-rect -o shell.g sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1998-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-egg.xml
===================================================================
--- g-egg.xml	(revision 0)
+++ g-egg.xml	(revision 0)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gegg1'>
+<refmeta>
+<refentrytitle>G-EGG</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-egg</refname>
+<refpurpose>Panda3D Translator (BRL-CAD to EGG)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-egg</command><arg choice='opt'>-8 </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-D <replaceable>calculation_tolerance</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>EGG_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-egg</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the
+<emphasis remap='I'>panda3d</emphasis>
+file format.
+The
+<option>-x</option>
+option specifies an RT debug flag and the
+<option>-X</option>
+option specifies an NMG debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances.
+The
+<option>-D</option>
+option specifies a calculational distance tolerance (mm). Any two vertices
+that are less than this distance apart will be treated as the same vertex.
+The
+<option>-v</option>
+option requests verbose output.
+The
+<option>-i</option>
+option requests the output file units to be inches (the default is mm).
+The
+The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default).
+<option>-8</option>
+option tells the facetizer to use the marching cubes algorithm.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-egg -o sample.egg sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2009-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: iges/g-iges.xml
===================================================================
--- iges/g-iges.xml	(revision 0)
+++ iges/g-iges.xml	(revision 0)
@@ -0,0 +1,185 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='giges1'>
+<refmeta>
+<refentrytitle>G-IGES</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-iges</refname>
+<refpurpose>IGES Translator (BRL-CAD to IGES)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-iges</command>    
+    <group choice='opt'><arg choice='plain'>-f </arg><arg choice='plain'><replaceable>t</replaceable></arg><arg choice='plain'><replaceable>m</replaceable></arg></group>
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-s </arg>
+    <arg choice='opt'>-x <replaceable>flag1</replaceable></arg>
+    <arg choice='opt'>-X <replaceable>flag2</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>output_file_or_directory</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-iges</emphasis>
+converts the specified objects of the BRL-CAD database,
+<emphasis remap='I'>database.g,</emphasis>
+to an IGES version 5.1 file,
+<emphasis remap='I'>file.iges.</emphasis></para>
+
+
+<para>The following options are recognized</para>
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><option>-f</option></term>
+  <listitem>
+<para>selects  a  BREP  IGES  file  consisting  of  only  Manifold Solid BREP
+Objects.  All CSG solids in the specified objects  are  tessellated  to
+produce  facetted  BREP  objects, then the indicated Boolean operations
+are performed for each region. Individual regions are  written  to  the
+IGES  file  as individual BREP objects.  This procedure results in some
+approximations since curved surface solids, such as TGCs or ellipsoids,
+are  approximated  by flat facets.  The accuracy of the
+tessellation may be controlled through the use of the
+<option>-a, -r, -n</option>
+options.</para>
+
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-a </option><emphasis remap='I'>abs_tol</emphasis></term>
+  <listitem>
+<para>Sets the absolute tolerance (floating point value) for tesselation.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-r </option><emphasis remap='I'>rel_tol</emphasis></term>
+  <listitem>
+<para>Sets the relative (to the size of the object) tolerance (floating point value) for tesselation.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-n </option><emphasis remap='I'>norm_tol</emphasis></term>
+  <listitem>
+<para>Sets the normal tolerance (floating point value 0..1) for tesselation.
+This value is compared to the dot product of the normals to determine if the surfaces are within tolerance</para>
+
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-t</option></term>
+  <listitem>
+<para>indicates that an IGES file consisting of
+only trimmed NURBs should be created. The trimmed  NURBs  will  all  be
+planar NURBs, and they are the facets derived from the tessellation and
+Boolean evaluation as in the -f option. The file produced in  this  way
+is  acceptable  to the Pro/Engineer IGES import routine.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-m</option></term>
+  <listitem>
+<para>implies the -t option, and is used to produce multiple IGES files  (one
+for  each region converted). In this case the argument to the -o option
+should be a directory where the IGES files  will  accumulate.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-v</option></term>
+  <listitem>
+<para>requests debugging information</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-s</option></term>
+  <listitem>
+<para>all facets in  BREP  objects  should  be
+output  in  the form of planar NURBs (Intergraph likes their IGES files
+this way).</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-x </option><emphasis remap='I'>flag1</emphasis></term>
+  <listitem>
+<para>set the librt debug flag (see raytrace.h for values)</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-X </option><emphasis remap='I'>flag2</emphasis></term>
+  <listitem>
+<para>set the librt debug flag (see nmg.h for values)</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-o </option><emphasis remap='I'>output_file_or_directory</emphasis></term>
+  <listitem>
+<para>Specifies the output file (or in the case of the -m) the output directory for the iges file(s).</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-P </option><emphasis remap='I'>num_cpus</emphasis></term>
+  <listitem>
+<para>Specifies the number of processors to use.</para>
+
+  </listitem>
+  </varlistentry>
+</variablelist>
+
+<para>If neither the -f , -t , nor the -m options  are  selected,
+the  default is a CSG IGES file. In this situation, all regions will be
+written to the IGES file as Boolean trees with all possible solids rep-
+resented  by their IGES CSG equivalent. In cases where there is no IGES
+CSG equivalent, the BRL-CAD solid is  tesellated  (using  the  provided
+tolerances),  and  a  BREP  object  is  written for that solid.</para>
+
+
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para><emphasis remap='I'>g-iges -f -o sample.iges sample.g object1</emphasis></para>
+
+<para>This command will produce an IGES BREP output file,
+<emphasis remap='I'>sample.iges,</emphasis>
+from
+<emphasis remap='I'>object1</emphasis>
+of the BRL-CAD database file
+<emphasis remap='I'>sample.g.</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>iges-g</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
+<!-- .br -->
+<emphasis remap='I'>The Initial Graphics Exchange Specification (IGES) Version 5.1,</emphasis>
+IGES/PDES Organization, September 1991.</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1993-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: iges/iges-g.xml
===================================================================
--- iges/iges-g.xml	(revision 0)
+++ iges/iges-g.xml	(revision 0)
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='igesg1'>
+<refmeta>
+<refentrytitle>IGES-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>iges-g</refname>
+<refpurpose>IGES Translator (IGES CSG to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>iges-g</command>    
+    <arg choice='opt'>-X <replaceable>NMG_debug_flag</replaceable></arg>
+    <arg choice='opt'>-x <replaceable>rt_debug_flag</replaceable></arg>
+    <arg choice='opt'>-N <replaceable>solid_name</replaceable></arg>
+    <arg choice='opt'>-b </arg>
+    <group choice='opt'><arg choice='plain'>-n </arg><arg choice='plain'><replaceable>d</replaceable></arg><arg choice='plain'><replaceable>3</replaceable></arg><arg choice='plain'><replaceable>t</replaceable></arg></group>
+    <arg choice='plain'>-o <replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>file.iges</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>iges-g</emphasis>
+converts the specified
+<emphasis remap='I'>file.iges</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. The IGES file is expected to conform to IGES 5.1.
+The
+<option>-n</option>
+option specifies that all rational B-spline surfaces in the IGES file should be
+combined into one BRL-CAD spline solid.
+The
+<option>-d</option>
+option indicates that IGES drawings should be converted to BRL-CAD NMG objects.
+Theses objects will be two-dimensional drawings, not solids.
+The
+<option>-3</option>
+option is the same as the
+<option>-d</option>
+option except the final projection into 2D is not performed. This may produce 3D drawings
+in cases where the drawings have been produced from a 3D model.
+The
+<option>-t</option>
+option requests all the trimmed surfaces in the IGES file be converted to
+a single BRL-CAD NMG solid.
+The
+<option>-N</option>
+option provides a name to be used for the single solid created under the
+<option>-n</option>
+or
+<option>-t</option>
+options, and is ignored for other options.
+The
+<option>-p</option>
+option indicates that BREP objects should be converted to NMG solids rather than the default BOT solids.
+The
+<option>-X</option>
+and
+<option>-x</option>
+options allow the setting of debug flags for the NMG routines and the rt library
+respectively. See
+<emphasis remap='I'>nmg.h</emphasis>
+and
+<emphasis remap='I'>raytrace.h</emphasis>
+for details.
+The absence of any of the
+<option>-n</option>
+,
+<option>-d</option>
+, or
+<option>-t</option>
+options results in the default behavior where
+all IGES CSG and planar face BREP objects are converted to BRL-CAD
+equivalents. Most conversions are exact, with the exceptions of the solid of
+revolution and the solid of linear extrusion. These solids do not exist in BRL-CAD
+and are therefore approximated. The solid of revolution is built from a series of
+truncated right cones developed by approximating the curve to be revolved with a series
+of straight line segments. The extrusion is similarly handled by approximating the
+curve to be extruded with straight line segments and using that to build a BRL-CAD
+<emphasis remap='I'>polysolid.</emphasis>
+Planar faced IGES BREP objects are converted to BRL-CAD NMG structures.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>iges-g -o sample.g sample.iges</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><emphasis remap='I'>The Initial Graphics Exchange Specification (IGES) Version 5.1,</emphasis>
+IGES/PDES Organization, September 1991.</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='authors'><title>AUTHORS</title>
+<para>John Anderson
+<!-- .br -->
+Susanne Muuss
+<!-- .br -->
+Phil Dykstra
+<!-- .br -->
+Earl Weaver</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1991-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: ply-g.xml
===================================================================
--- ply-g.xml	(revision 0)
+++ ply-g.xml	(revision 0)
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='plyg1'>
+<refmeta>
+<refentrytitle>PLY-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ply-g</refname>
+<refpurpose>Stanford PLY format Translator (PLY to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>ply-g</command>    
+    <arg choice='opt'>-s <replaceable>scale_factor</replaceable></arg>
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-d </arg>
+    <arg choice='plain'><replaceable>file.ply</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>ply-g</command>
+converts the specified
+<emphasis remap='I'>file.ply</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>file.g</emphasis>
+file. The
+<option>-v</option>
+option (verbose) prints much information about what the process is doing.
+The
+<option>-d</option>
+option sets a debug flag which will cause a core dump on error.
+The
+<option>-s</option>
+option specifies a scale factor to be applied to the PLY data. By convention, PLY data is typically in meters,
+so the default scale factor is 1000. The scale factor supplied on the command line will replace the default
+scale factor. So, for example, specifying a scale factor of 500 will halve the size of the resulting BRL-CAD
+model as compared to converting it without specifying a scale factor.
+The
+<emphasis remap='I'>file.ply</emphasis>
+file is expected to be in the Stanford PLY format (ASCII or binary).</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>ply-g sample.ply sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2003-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: proe-g.xml
===================================================================
--- proe-g.xml	(revision 0)
+++ proe-g.xml	(revision 0)
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='proeg1'>
+<refmeta>
+<refentrytitle>PROE-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>proe-g</refname>
+<refpurpose>Pro/Engineer Translator (Pro/Engineer to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>proe-g</command>    
+    <arg choice='opt'>-darS </arg>
+    <arg choice='opt'>-i <replaceable>initial_ident</replaceable></arg>
+    <arg choice='opt'>-I <replaceable>constant_ident</replaceable></arg>
+    <arg choice='opt'>-m <replaceable>material_code</replaceable></arg>
+    <arg choice='opt'>-u <replaceable>reg_exp</replaceable></arg>
+    <arg choice='opt'>-x <replaceable>RT_DEBUG_FLAG</replaceable></arg>
+    <arg choice='plain'><replaceable>file.brl</replaceable></arg>
+    <arg choice='plain'><replaceable>file.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>proe-g</emphasis>
+converts the specified
+<emphasis remap='I'>file.brl</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>file.g</emphasis>
+file.
+The
+<option>-d</option>
+option prints debugging information.
+The
+<option>-a</option>
+option implies that all the parts in the Pro/E model should be converted to
+BRL-CAD
+<emphasis remap='I'>air</emphasis>
+regions.
+The
+<option>-i</option>
+option sets the starting ident number for the regions created. As each
+new region is created, this number will be incremented before assigning
+the next ident number (conflicts with
+<option>-I</option>
+). The
+<option>-I</option>
+option sets a constant ident number that will be assigned to all the regions created (conflicts with
+<option>-i</option>
+).
+The
+<option>-m</option>
+option sets a material code that will be assigned to all the regions created (default is 1).
+The
+<option>-r</option>
+flag indicates that the model should not be rotated, translated, or scaled, but left in
+the same orientation and size as it was created in
+<emphasis remap='I'>Pro/E.</emphasis>
+This allows the user to convert parts that are referenced by previously converted
+assemblies, so that the transformation matrix in the referencing assembly will
+size and position the part.
+The
+<option>-x</option>
+option sets an RT debug flags (see raytrace.h).
+The
+<emphasis remap='I'>file.brl</emphasis>
+file is expected to be output from the
+<emphasis remap='I'>BRL-CAD</emphasis>
+menu option of the Pro/Engineer
+<emphasis remap='I'>EXPORT</emphasis>
+menu. This menu option is a Pro/Develop application produced by the USARL.</para>
+
+<para>Note that the routine documented here is obsolete, and only maintained for compatibility with
+older versions of Pro/Engineer. The current method of converting from Pro/Engineer to BRL-CAD
+is still a two step process, but a newer Pro/Toolkit application must be installed (see “install.doc”
+in the “pro-engineer” directory of the BRL-CAD distribution). From within Pro/Engineer, the “proe-brl”
+option must be selected from the “File” menu, and the user will be prompted for an output file name,
+a starting ident number, a maximum tessellation error, and an additional curvature correction.
+The output from this new routine, is a Tcl script that may be converted to a BRL-CAD model using “asc2g”
+or by sourcing the file during an MGED session.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>proe-g sample.brl sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><emphasis remap='I'>Pro/Engineer Modeling User's Guide,</emphasis>
+Version 13.0,
+Parametric Technology Corporation</para>
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1994-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: vdeck/vdeck.xml
===================================================================
--- vdeck/vdeck.xml	(revision 0)
+++ vdeck/vdeck.xml	(revision 0)
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='vdeck1'>
+<refmeta>
+<refentrytitle>VDECK</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>vdeck</refname>
+<refpurpose>generate COM-GEOM decks from a GED file</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>vdeck</command>    
+    <arg choice='plain'><replaceable>file.vg</replaceable></arg>
+    <sbr/>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para>The
+<command>vdeck</command>
+tool converts a model into an ASCII text representation separating
+regions (combinations with the region flag set) and primitives (also
+known as solids) into separate files.  A list of objects to be
+converted are selected interactively from the table of contents.
+String matching operators (wild cards) like those used to specify file
+or directory names in
+<citerefentry><refentrytitle>sh</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+are provided for this purpose, as well as to search for names in the
+table of contents.</para>
+
+<para>One or more COM-GEOM decks can be output.  Each deck consists of three
+files: the solid, region, and region-id tables.  These can be combined
+with
+<citerefentry><refentrytitle>cat</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
+
+<para>A menu of the commands and their usage is available by typing
+<emphasis remap='B'>?</emphasis>
+to the program.</para>
+
+</refsect1>
+
+<refsect1 xml:id='warning'><title>WARNING</title>
+<para>The
+<command>vdeck</command>
+tool is intended for v5 BRL-CAD geometry databases only.  Files
+produced by older (v4 and earlier) versions of BRL-CAD may be
+incompatible with
+<emphasis remap='I'>vdeck.</emphasis></para>
+
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<para>In the following example,
+<emphasis remap='I'>&lt;model&gt;</emphasis>
+is the name of the BRL-CAD model and
+<emphasis remap='I'>&lt;groupname&gt;</emphasis>
+is a group or region.
+<emphasis remap='I'>Vdeck</emphasis>
+converts all of the primitives and regions within the specified group
+into text and writes them out to files:</para>
+
+<literallayout remap='.nf'>
+&gt; vdeck &lt;model&gt;.g
+command ( ? for menu ) &gt;&gt; i &lt;groupname&gt;
+command ( ? for menu ) &gt;&gt; d
+===================================================
+O U T P U T F I L E S
+solid table = "solids"
+region table = "regions"
+region identification table = "region_ids"
+command ( ? for menu ) &gt;&gt; q
+quitting...
+</literallayout> <!-- .fi -->
+
+</refsect1>
+
+<refsect1 xml:id='files'><title>FILES</title>
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><emphasis remap='I'>solids</emphasis></term>
+  <listitem>
+<para>default solid table output</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>regions</emphasis></term>
+  <listitem>
+<para>default region table output</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>region_ids</emphasis></term>
+  <listitem>
+<para>default region
+<acronym>ID</acronym>
+table output</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>*.st</emphasis></term>
+  <listitem>
+<para>unique solid table output</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>*.rt</emphasis></term>
+  <listitem>
+<para>unique region table output</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>*.id</emphasis></term>
+  <listitem>
+<para>unique region
+<acronym>ID</acronym>
+table output</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>/tmp/dis???</emphasis></term>
+  <listitem>
+<para>temporary file used during processing</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><emphasis remap='I'>/tmp/reg???</emphasis></term>
+  <listitem>
+<para>temporary file used during processing</para>
+  </listitem>
+  </varlistentry>
+</variablelist>
+</refsect1>
+
+<refsect1 xml:id='see_also'><title>SEE ALSO</title>
+<para><citerefentry><refentrytitle>cat</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>gedplot</refentrytitle><manvolnum>1V</manvolnum></citerefentry>, <citerefentry><refentrytitle>mged</refentrytitle><manvolnum>1B</manvolnum></citerefentry>.</para>
+</refsect1>
+
+<refsect1 xml:id='authors'><title>AUTHORS</title>
+<para>Gary S. Moss, BRL/VLD-VMB
+<!-- .br -->
+Keith Applin, BRL/VLD-TAB</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1986-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: tankill/g-tankill.xml
===================================================================
--- tankill/g-tankill.xml	(revision 0)
+++ tankill/g-tankill.xml	(revision 0)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gtankill1'>
+<refmeta>
+<refentrytitle>G-TANKILL</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-tankill</refname>
+<refpurpose>TANKILL Translator (BRL-CAD to TANKILL)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-tankill</command>    
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-xX <replaceable>lvl</replaceable></arg>
+    <arg choice='opt'>-i <replaceable>idents_file</replaceable></arg>
+    <arg choice='opt'>-s <replaceable>surroundings_code</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tol</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>tankill_file</replaceable></arg>
+    <arg choice='plain'><replaceable>database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>g-tankill</emphasis>
+converts the specified
+<emphasis remap='I'>object(s)</emphasis>
+from a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file to the
+<emphasis remap='I'>TANKILL</emphasis>
+format.
+The
+<emphasis remap='I'>tankill_file</emphasis>
+represents each object as a series
+of triangular faces.
+This converter creates a region for each object ident number by unioning
+together all the objects with the same ident number. The
+<option>-x</option>
+option specifies a LIBRT debug flag, and the
+<option>-X</option>
+option specifies an NMG-Library debug flag. The
+<option>-a</option>
+,
+<option>-r</option>
+, and
+<option>-n</option>
+options specify tesselation tolerances. The
+<option>-o</option>
+option specifies the name of the file to receive the output
+(stdout is the default). The
+<option>-i</option>
+option specifies that ident numbers should be assigned sequentially
+rather than using the idents assigned in the BRL-CAD model. A list
+of the regions and the assigned idents are written to
+<emphasis remap='I'>idents_file</emphasis>
+along with the BRL-CAD ident number, aircode, gift material code,
+los, and any material name assigned through the
+<emphasis remap='I'>mater</emphasis>
+command. The
+<option>-s</option>
+option specifies that the provided surroundings code should be used for
+all the components in the
+<emphasis remap='I'>TANKILL</emphasis>
+output model.  The default is to use a surroundings code of 1000.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-tankill -o sample.tankill sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1992-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: tankill/tankill-g.xml
===================================================================
--- tankill/tankill-g.xml	(revision 0)
+++ tankill/tankill-g.xml	(revision 0)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='tankillg1'>
+<refmeta>
+<refentrytitle>TANKILL-G</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>tankill-g</refname>
+<refpurpose>TANKILL Translator (TANKILL to BRL-CAD)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>tankill-g</command>    
+    <arg choice='opt'>-n </arg>
+    <arg choice='opt'>-t <replaceable>tolerance</replaceable></arg>
+    <arg choice='opt'>-i <replaceable>input_tankill_file</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>database.g</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><emphasis remap='I'>tankill-g</emphasis>
+converts the specified
+<emphasis remap='I'>input_tankill_file</emphasis>
+to a BRL-CAD
+<emphasis remap='I'>database.g</emphasis>
+file. The
+<emphasis remap='I'>tolerance</emphasis>
+provided is the maximum distance (in mm) between two
+vertices at which they will be considered to be the same vertex. The
+<option>-n</option>
+option provides output in the form of NMG primitives rather than the
+default which is BOT objects. The
+<emphasis remap='I'>input_tankill_file</emphasis>
+is expected to be in the
+<emphasis remap='I'>TANKILL</emphasis>
+format used by the British Defense Research Agency. This is
+a simple triangular patch format where each object is described
+by a series of vertices. Triangular facets are built from the first,
+second, and third vertices; from the second, third, and fourth vertices;
+from the third, fourth and fifth; and so on. Each object is converted
+to a single BOT object which is then placed into its own region and
+assigned the component code provided in the TANKILL file.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>tankill-g sample.tankill sample.g</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1993-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-vrml.xml
===================================================================
--- g-vrml.xml	(revision 0)
+++ g-vrml.xml	(revision 0)
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gvrml1'>
+<refmeta>
+<refentrytitle>G-VRML</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-vrml</refname>
+<refpurpose>Perform Boolean evaluations to produce a VRML version 2.0 file</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-vrml</command>    
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-d <replaceable>calc_dist_tol</replaceable></arg>
+    <arg choice='opt'>-a <replaceable>abs_tess_tol</replaceable></arg>
+    <arg choice='opt'>-n <replaceable>norm_tess_tol</replaceable></arg>
+    <arg choice='opt'>-r <replaceable>rel_tess_tol</replaceable></arg>
+    <arg choice='opt'>-x <replaceable>librt_debug_flag</replaceable></arg>
+    <arg choice='opt'>-X <replaceable>NMG_debug_flag</replaceable></arg>
+    <arg choice='opt'>-u <replaceable>units_name</replaceable></arg>
+    <arg choice='opt'>-o <replaceable>outfile</replaceable></arg>
+    <arg choice='plain'><replaceable>infile.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object(s)</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>g-vrml</command>
+performs the Boolean operations specified in any regions in the specified
+<emphasis remap='I'>object(s)</emphasis>
+and writes the resulting NMG objects to
+<emphasis remap='I'>outfile</emphasis>
+or to
+<emphasis remap='I'>stdout</emphasis>
+if the
+<option>-o</option>
+option is not used. The output is in VRML version 2.0 format. The
+<option>-v</option>
+option requests verbose output while the conversion is taking place. The
+<option>-d</option>
+option specifies a calculational distance tolerance (in millimeters). This
+tolerance is used to distinguish neighboring vertices. Any two vertices less than
+this tolerance distance apart will be considered the same vertex. The default value
+is 0.005mm.
+Prior to performing the Boolean operations for each region, the involved primitive solids
+are converted to a planar facetted approximation and stored as NMG solids. This tessellation
+can be controlled using the tessellation tolerances. The
+<option>-a</option>
+option may be used to specify an absolute tessellation tolerance (in millimeters). This
+requires that the maximum absolute error from the tessellated surface to the actual
+surface must not be greater than
+<emphasis remap='I'>abs_tess_tol.</emphasis>
+The
+<option>-n</option>
+option specifies a surface normal error tolerance (in degrees) for the tessellation.
+The
+<option>-r</option>
+option may be used to set a relative error tolerance. This effectively
+sets an absolute tolerance for each primitive solid by multiplying the
+overall size of the solid by
+<emphasis remap='I'>rel_tess_tol.</emphasis>
+The
+<option>-x</option>
+and
+<option>-X</option>
+options are used to set debug flags for
+<emphasis remap='I'>librt</emphasis>
+and the
+<emphasis remap='I'>NMG</emphasis>
+routines respectively. The definitions of these flags may be found in
+<emphasis remap='I'>raytrace.h</emphasis>
+and
+<emphasis remap='I'>nmg.h.</emphasis>
+The
+<option>-u</option>
+option can be used to set the units for the resulting VRML file (the default is mm).
+Any units name that MGED accepts will work here.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-vrml -o shell.wrl sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 1998-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: g-var.xml
===================================================================
--- g-var.xml	(revision 0)
+++ g-var.xml	(revision 0)
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='gvar1'>
+<refmeta>
+<refentrytitle>G-VAR</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>g-var</refname>
+<refpurpose>Produce (OpenGL) Vertex Arrays from BOT BRL-CAD geometry</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>g-var</command>    
+    <arg choice='opt'>-v </arg>
+    <arg choice='opt'>-y </arg>
+    <arg choice='opt'>-s <replaceable>scale</replaceable></arg>
+    <arg choice='opt'>-f </arg>
+    <arg choice='opt'>-o <replaceable>outfile</replaceable></arg>
+    <arg choice='plain'><replaceable>infile.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>g-var</command>
+writes the bag of triangle (BOT) primitives of the specified
+<emphasis remap='I'>object</emphasis>
+in a binary array format to
+<emphasis remap='I'>outfile</emphasis>
+or to
+<emphasis remap='I'>stdout.</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='options'><title>OPTIONS</title>
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><option>-v</option></term>
+  <listitem>
+<para>Request verbose output.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-y</option></term>
+  <listitem>
+<para>Transform the coordinate system from xyz to xzy.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-s scale</option></term>
+  <listitem>
+<para>Scale the output geometry by factor
+<emphasis remap='B'>scale</emphasis>
+. By default the scale factor is 0.001 (standard transformation
+from meters to millimeters.)</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-f</option></term>
+  <listitem>
+<para>Flip face normals. This changes both the vertex order and the output normals.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><option>-o outfile</option></term>
+  <listitem>
+<para>The output will be written to
+<emphasis remap='B'>outfile</emphasis>
+. By default the output is written to stdout.</para>
+  </listitem>
+  </varlistentry>
+</variablelist>
+</refsect1>
+
+<refsect1 xml:id='file_format'><title>FILE FORMAT</title>
+<para><emphasis remap='I'>TODO</emphasis></para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>g-var -o sample.mesh sample.g sample_object</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>Prasad Silva</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2006-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
Index: bot_shell-vtk.xml
===================================================================
--- bot_shell-vtk.xml	(revision 0)
+++ bot_shell-vtk.xml	(revision 0)
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- lifted from troff+man by doclifter -->
+<refentry xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en' xml:id='bot_shellvtk1'>
+<refmeta>
+<refentrytitle>BOT_SHELL-VTK</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>BRL-CAD</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>bot_shell-vtk</refname>
+<refpurpose>VTK polydata converter (BRL-CAD to VTK)</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv xml:id='synopsis'>
+<cmdsynopsis>
+  <command>bot_shell-vtk</command>    <arg choice='opt'>-m </arg>
+    <arg choice='opt'>-n </arg>
+    <arg choice='opt'>-d <replaceable>debug_level</replaceable></arg>
+    <arg choice='opt'>-g <replaceable>cell_size</replaceable></arg>
+    <arg choice='plain'>-o <replaceable>vtk_polydata_output</replaceable></arg>
+    <arg choice='plain'><replaceable>brlcad_database.g</replaceable></arg>
+    <arg choice='plain'><replaceable>object1</replaceable></arg>
+    <arg choice='opt'><arg choice='plain'><replaceable>object2</replaceable></arg><arg choice='plain' rep='repeat'><replaceable>object3</replaceable></arg></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 xml:id='description'><title>DESCRIPTION</title>
+<para><command>bot_shell-vtk</command>
+uses raytracing to extract the exterior triangles from a model made up
+of BOT primitives. The default operation is to fire a single ray at each
+triangle of each BOT primitive in the specified objects. The rays are fired
+anti-normalward towards the center of each triangle from outside the model
+bounding box. If the triangle currently under consideration appears as the
+first object hit along the ray, then that triangle is included in the
+VTK polydata output (thus retaining only exterior triangles). Non-BOT
+primitives encountered along the rays may hide BOT triangles, but non-BOT
+primitives do not contribute to the output.
+The
+<option>-m</option>
+option may be specified to enable both the first and last triangles along
+each ray to be added to the output. This can improve performance, by reducing
+the number of rays fired, but may reduce performance for complex models
+because it requires processing each ray completely through the model.
+If the
+<option>-n</option>
+option is specified, the output will include vertex normals in the
+VTK output. If the BOT primitives of the input BRL-CAD model do not
+have vertex normal information, this option will not add any information
+to the output, but will greatly increase the size of the output file.
+If the
+<option>-g</option>
+option is specified, then the rays are fired from a uniform grid for
+three orthogonal directions rather than at each individual triangle. This
+can give a fairly rapid result for larger cell sizes, but is likely to miss
+some triangles. The
+<emphasis remap='I'>cell_size</emphasis>
+must be specified in millimeters.
+The
+<option>-d</option>
+option may be used to get debug output during processing. This is likely to
+only be useful for developers.</para>
+</refsect1>
+
+<refsect1 xml:id='example'><title>EXAMPLE</title>
+<literallayout remap='RS'>
+<synopsis>
+$ <emphasis remap='I'>bot_shell-vtk  -o output.vtk  sample.g  the_exterior</emphasis>
+</synopsis>
+</literallayout> <!-- remap='RE' -->
+</refsect1>
+
+<refsect1 xml:id='diagnostics'><title>DIAGNOSTICS</title>
+<para>Error messages are intended to be self-explanatory.</para>
+
+</refsect1>
+
+<refsect1 xml:id='author'><title>AUTHOR</title>
+<para>BRL-CAD Team</para>
+
+</refsect1>
+
+<refsect1 xml:id='copyright'><title>COPYRIGHT</title>
+<para>This software is Copyright (c) 2003-2012 by the United States
+Government as represented by U.S. Army Research Laboratory.</para>
+</refsect1>
+
+<refsect1 xml:id='bug_reports'><title>BUG REPORTS</title>
+<para>Reports of bugs or problems should be submitted via electronic
+mail to &lt;devs@brlcad.org&gt;.</para>
+</refsect1>
+</refentry>
+
