G-ACAD(1)
π NAME π
g-acad β BRL-CAD to Lockheed Martin ACAD facet file converter. This is the G-ACAD(1) page from the BRL-CAD manual, and bestie, itβs giving βtake my BRL-CAD geometry and turn it into an ACAD facet fileβ energy. π
π οΈ SYNOPSIS π οΈ
g-acad [-vi] [-x lvl] [-X lvl] [-a abs_tol] [-r rel_tol] [-n norm_tol] [-D dist_tol] [-P ncpus] [-e error_file] [-o output_file] database.g object(s)
πΈ DESCRIPTION πΈ
okay so g-acad converts the specified object(s) from a BRL-CAD database.g file to the Lockheed Martin "Advanced Computer-Aided Design" (ACAD) facet file format (formerly from General Dynamics). Each region is tessellated into a triangulated mesh using the NMG boolean evaluator and written as a separate part. slay. β¨
β οΈ Not me clarifying this again: this format has literally nothing to do with the Autodesk AutoCAD software. Different thing, bestie. π
If no output file is specified with -o, the result is written to standard output. no cap. π«Ά
β¨ OPTIONS β¨
-vβ Enable verbose output, reporting each region as it is processed. sheβs chatty and we love that.-iβ Output vertex coordinates in inches (the default is millimeters). inches era. π-xlvl β Set the librt debug flag to the given hexadecimal value. hex girl debug moment.-Xlvl β Set the NMG debug flag to the given hexadecimal value. more hex, more debug, more vibes.-aabs_tol β Absolute tessellation tolerance (mm). This is the maximum permitted distance between a surface and its tessellated approximation. Setting this clears the relative tolerance. π―-rrel_tol β Relative tessellation tolerance, expressed as a fraction of the bounding box of each object (default is0.01). yup, thatβs the default, donβt come for me.-nnorm_tol β Surface normal tolerance (degrees), the maximum angle between adjoining facet normals. Setting this clears the relative tolerance. π-Ddist_tol β Calculational distance tolerance (mm). Vertices closer together than this are considered identical. lowkey the βsame vertexβ detector.-Pncpus β Number of processors to request (currently informational only; tessellation runs single-threaded). sheβs asking for the whole squad but actually running solo. π-eerror_file β Write error and diagnostic messages to error_file instead of standard error. keep the messy tea in a file. π-ooutput_file β Write the ACAD output to output_file instead of standard output. put it somewhere cute.-h,-?β Print a usage message and exit. help and bounce. π
π§ͺ EXAMPLES π§ͺ
Example 1. Convert a region to an ACAD facet file
g-acad -o hull.acad vehicle.g hull
Tessellates the hull region from vehicle.g and writes the result to hull.acad in millimeters. iconic little conversion moment. π₯
Example 2. Convert with tighter tolerances and inch units
g-acad -i -a 0.5 -n 15 -e convert.log -o tank.acad tank.g turret hull tracks
Converts three regions to a single ACAD facet file in inches, using a 0.5 mm absolute tessellation tolerance and a 15-degree normal tolerance for finer faceting, while logging diagnostics to convert.log. main character tessellation behavior, fr fr. π
π SEE ALSO π
brlcad(1), g-stl(1), g-obj(1), g-vrml(1), mged(1) β go read those next, bestie. π«Ά
π AUTHOR π
BRL-CAD Team β iconic. periodt. π
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. donβt suffer in silence, send the bug report. π
thatβs the whole page, bestie π source/version: BRL-CAD; page: G-ACAD(1). The footer doesnβt give a date, so weβre not inventing one β we keep it fr fr. π«Ά
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms