|patch-g [options] output.g|
This program converts FASTGEN geometry into BRL-CAD mged(1) 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 patch-g : polygons, plates, boxes, wedges, cylinders, spheres, and rods. It is recommended that patch-g be run with the -p option for most uses.
patch-g requires that the FASTGEN file be run through the pre-processor rpatch. This is achieved by executing rpatch<fastgen_file>file.rpatch. Once this step is executed, patch-g can be used to convert the intermediate file into a binary brlcad(1) ".g" file.
patch-g 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.
The available options are:
-T tolerance_distanceThe tolerance_distance is specified in inches. Any two vertices within this distance from each other will be considered the same vertex.
-A perp_tolerancethe perp_tolerance 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.
-x librt_debug_flagSpecifies a flag for debugging the librt package.
-X NMG_debug_flagSpecifies a flag for NMG routine debugging.
-pProduce polysolid output rather than the default NMG solids.
-6Convert plate-mode triangles using ARB6 solids.
-f preprocessed_input_fileUse the specified file as the input for conversion.
-i labels_fileSpecifies desired group names to override defaults.
-m materials_fileSpecifies material properties to be assigned to components.
-aProcess phantom armor.
-nProcess volume mode as plate mode.
-t titleSpecifies a title for the output model.
-o top_level_nameSpecifies a name for the top level object (default is all ).
-rReverse normals for plate mode triangles.
-c “X Y Z”Specifies centroid for some plate mode surface normal calculations.
-d debug_levelSpecifies a debug level (1-3).
rpatch < fastgen_file > file.rpatch
patch-g -p -f file.rpatch file.g
The diagnostics are intended to be self-explanatory.
Bill Mermagen, Jr.
This software is Copyright (c) 1991-2013 by the United States Government as represented by U.S. Army Research Laboratory.
Reports of bugs or problems should be submitted via electronic mail to <email@example.com>.