RTCHECK(1)
π
BRL-CAD RTCHECK(1) β raytrace a model to detect and plot overlapping geometry
β¨ NAME β¨
rtcheck β raytrace a model to detect and plot overlapping geometry
π SYNOPSIS π
rtcheck [options] model.g [objects...] > overlaps.plot3
π DESCRIPTION π
Okay so rtcheck fires a grid of rays at the objects you list in the BRL-CAD database model.g, and its whole mission is finding places where two regions occupy the same space β overlaps, bestie. Each overlapping ray segment gets written to standard output as a 3-D BRL-CAD plot3(5) file (in millimeters) that you can overlay on the geometry for visualization, and a textual summary of the overlapping region pairs plus their maximum depths goes to standard error. Overlaps shallower than 0.1mm are ignored. Periodt.
If you donβt list any objects, rtcheck uses the same automatic default-object selection described in rt(1). If no single usable default can be resolved, it aborts before checking overlaps. No vibes, no check.
The orientation of the rays can be set with the -a and -e options. In that case the model is autosized, the grid is centered on the model centroid, and ray spacing is chosen to span the selected object set. Alternatively, with -M a model-to-view matrix is read from standard input; the grid then ranges from -1.0 to +1.0 in view space and its resolution is set with -s. The -M form is what mged(1) uses when it invokes the rtcheck command internally. iykyk π
rtcheck is a front-end to librt(3) and accepts the full rt(1) option set (non-square views, perspective, multiprocessing, etc.); only the options most relevant to overlap checking are listed below.
π OPTIONS π
-s #β Number of rays to fire in X and Y (square grid). The default is512, yielding a512x512grid.-g mmβ Grid cell width in millimeters, overriding the value derived from the view size and grid resolution.-G mmβ Grid cell height in millimeters.-a degβ View azimuth in degrees. Triggers autosizing; used with-eand conflicts with-M.-e degβ View elevation in degrees. Triggers autosizing; used with-aand conflicts with-M.-Mβ Read the model-to-view matrix (and optional animation script) from standard input. Conflicts with-aand-e.-o file.plot3β Write the plot output tofile.plot3instead of standard output.-rβ Report unique overlapping region pairs (the default). At the end of the run a list of unique region pairs, the count per pair, and the maximum overlap depth is printed.-Rβ Suppress the unique-pair summary; instead print every individual overlap segment as it is found.-P #β Maximum number of processor cores to use. The default is all available cores; a negative value means use all but that many.-p degβ Perspective angle in degrees (0 <= deg < 180;0selects an orthographic view).-U #β Whetherlibrt(3)retains air-coded regions (0= discard air, the default;1= keep air).-+ tβ Emit the plot data in ASCII text format rather than the default binaryplot3(5)encoding.
π¦ EXAMPLES π¦
π§Έ Example 1. Check a subassembly for overlaps and view the result
rtcheck -s 1024 -a 35 -e 25 truck.g chassis > overlaps.plot3
overlay overlaps.plot3
Fires a 1024x1024 grid from azimuth 35, elevation 25 degrees at the chassis in truck.g, capturing every overlapping ray segment in overlaps.plot3. The summary of offending region pairs is printed to the terminal, and the resulting plot can be loaded over the geometry in mged(1) with the overlay command (or piped to plot3-fb(1)) to see exactly where the interferences occur. Obsessed with a clean overlay, ngl.
π SEE ALSO π
brlcad(1), mged(1), rt(1), rtarea(1), plot3-fb(1), librt(3), plot3(5)
π DIAGNOSTICS π
Numerous error conditions are possible. Descriptive messages are printed on standard error (file descriptor 2). Read them, bestie β theyβre literally trying to tell you something.
π AUTHOR π
BRL-CAD Team
π 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
Thatβs the whole vibe: source/version BRL-CAD, manual RTCHECK(1), and the footer doesnβt list a date, so no made-up date from me. Byeeee ππ
π¦ 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