SHOWSHOT(1)
β¨ NAME β¨
okay bestie, this is showshot(1) from BRL-CAD β the little icon that generates MGED commands representing a ray through some geometry. No cap, itβs giving βturn my ray data into database objectsβ π
π SYNOPSIS π
showshot [-n name] [-r radius] [-?] < input
π DESCRIPTION π
okay so showshot reads the description of a ray through some geometry on standard input and writes mged(1) commands to standard output that build a database object representing that ray. Each line of input must have the form
object x_in y_in z_in x_out y_out z_out
as produced by nirt(1), where object is the name of a database object along the ray and (x_in, y_in, z_in) and (x_out, y_out, z_out) are the rayβs entry and exit points for that object. The first and last lines of input must correspond to the first and last objects encountered along the ray; the intervening lines may appear in any order. Slay.
showshot emits commands to create an RCC whose vertex is the entry point of the first object and which extends to the exit point of the last object (all other coordinates are ignored). It then makes the RCC a member of a region colored yellow (255 255 0) and creates a group containing the ray region along with every object named in the input. Literally iconic.
π¦ OPTIONS π¦
-n nameβ usenameas the root for the generated object names: the ray solid isname.s, the ray region isname.r, and the group isname. The default isray.PID, wherePIDis the process ID ofshowshot. Periodt.-r radiusβ set the radius of the RCC representing the ray, in database units. The default is1. Cute little radius moment.-?β print a usage message and exit. Honestly? A queen.
πΈ EXAMPLES πΈ
Example 1. Visualize a NIRT shotline in MGED
nirt -b -f entexit.nrt model.g component > shot.txt
showshot -n shotline -r 0.5 < shot.txt > shot.mged
mged model.g < shot.mged
Fire a ray through component with nirt(1) using a format that prints the entry and exit points of each partition, convert that report into a thin (radius 0.5) yellow ray named shotline with showshot, then source the generated commands back into mged(1) to draw the ray alongside the model. Obsessed with this workflow fr fr.
π₯ SEE ALSO π₯
brlcad(1), mged(1), nirt(1) β go read, bestie π
π AUTHOR π
BRL-CAD Team β icons only.
π COPYRIGHT π
This software is Copyright (c) 1991-2026 by the United States Government as represented by U.S. Army Research Laboratory. Thatβs the legal tea, bestie.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Do not gatekeep the bugs π
okay bye bestie β BRL-CAD Β· showshot(1) Β· copyright window 1991-2026 Β· catch you in the terminal π
β¨
π¦ 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