GDIFF(nged)
a BRL-CAD differential geometry comparator
β¨ NAME β¨
okay so bestie, welcome to GDIFF(nged) β she lives in the BRL-CAD User Commands manual family π
. gdiff is a BRL-CAD differential geometry comparator, and thatβs the name-section tea. π«
π οΈ SYNOPSIS π οΈ
gdiff [options]... left_object right_object
π DESCRIPTION π
gdiff compares BRL-CAD geometry objects using LIBRTβs solid raytracing capabilities and visualizes differences in the display manager. Itβs giving geometry detective with main character energy, fr fr. πβ¨
Hereβs the segment color lore:
- Red segments are the ones generated only from intersections with the
left_objobject. - Blue segments represent intersections unique to the
right_objobject. - White segments represent intersections common to both objects.
By default, only segments unique to the left and/or right objects are displayed. No extra noise, just the differences. π
Now, grid size is the thing you need to pay attention to, bestie. By default, gdiff will try to guess a reasonable grid spacing using the bounding boxes of the objects in question β but depending on the visual quality of the result, you may want to adjust the spacing up or down. ποΈ
β οΈ Be careful of specifying tolerances that are too fine β performance will drop off rapidly as grid spacing becomes very small. Like, dramatically. Donβt do it unless you know what youβre doing. π
π OPTIONS π
-h,βhelpβ prints help.-g spacing,βgrid-spacing spacingβ controls the spacing of the test-ray grid in millimeters.-l,βview-leftβ visualizes solid segments occurring only in the left object.-r,βview-rightβ visualizes solid segments occurring only in the right object.-b,βview-bothβ visualizes solid segments occurring in both the left and right objects.-G,βgrazingβ reports differences in grazing hits. By default, grazing-hit differences are reported only when nearby offset rays confirm a difference; this option disables that filter.-S,βstructureβ enables structure-diff mode. Instead of raytracing,gdiffcompares tree structure, matrices, boolean operators, and leaf geometry while ignoring object names. This mode does not currently produce visual output.
π EXAMPLES π
Example 1. Compare two region trees and visualize only their differing volume.
mged> gdiff βgrid-spacing 1.0 left.r right.r
Shoots a comparison grid across left.r and right.r and displays segments that appear only in one object or the other. Slay, differences visualized. π₯
Example 2. Compare tree structure without raytracing.
mged> gdiff βstructure left.r right.r
Checks whether the two trees differ in matrices, booleans, or leaf geometry without generating view output. Structure tea, no raytracing required. π§
π AUTHOR π
Clifford Yapp π
π COPYRIGHT π
This software is Copyright (c) 2016-2026 United States Government as represented by the U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Donβt be shy β they want the tea. π«Ά
π mwah, thatβs the whole page β signing off from BRL-CAD with GDIFF(nged) energy. The date? Not listed on this page, bestie, so Iβm not inventing one. Periodt. π«Ά
π¦ 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