LC(nged)
Lists codes (i.e. region attributes) 'region_id', 'material_id', 'los', 'aircode', 'region name', 'region parent' within a group or combination.
π LC β the code-listing bestie (nged manual) π
Okay so you're in nged and you need to know what codes your regions are actually rocking. That's what lc is for. It lives in the BRL-CAD User Commands manual and it's about to make your whole life easier, no cap.
β¨ NAME β¨
lc β lists codes (i.e. region attributes) region_id, material_id, los, aircode, region name, region parent within a group or combination.
Like, it just lays them all out for you. Iconic behaviour honestly.
πΈ SYNOPSIS πΈ
lc [-d|-m|-s] [-r] [-z] [-0|-1|-2|-3|-4|-5] [-f {fileName}] {groupName}
π¦ DESCRIPTION π¦
The lc command lists a set of codes (i.e. attributes) of regions within a group/combination. Listed in columns are the following: region_id, material_id, los, aircode, region name, region parent.
If a value is unset, it is reported as β. Yep, a little em dash. She's telling you "nothing here bestie" without saying a word. π
π OPTIONS π
-dβ Specifies to list only regions with sharedregion_idvalues. So, just the ones doubling up on an id. Duplicate alert π¨-mβ Specifies to list only regions with sharedregion_idvalues where one or more of the objects in the set of objects defined by sharedregion_idvalue reports a differentmaterial_id,aircodeand/orlosvalues. Essentially, this allows users to quickly find and resolve inconsistent codes (i.e, id settings) within aregion_idgroup. This is the "wait, why do these two have different settings??" detector and it ate.-sβ Specifies to list only one region with each combination ofregion_id,material_id,los, andaircode. One representative per combo, very demure, very minimal.-rβ Remove regions from the list in which their parent is a region and the region is subtracted within the parent. The-roption can be combined with any other option. Very flexible, we love her π«Ά-zβ Specifies descending (z-a) sort order. Flipping the whole list around, main character energy.-0-1-2-3-4-5-6β Specifies sort column 1, 2, 3, 4, 5, or 6 (referring to columns listed in the description of this command); 1 is default. If 0 is specified, the regions are listed in the order in which they are stored, but this will be overridden if-d,-m, or-soptions are used, because of the sorting which needs to be done when either of those options is used. So like,-0is "whatever order they're stored in" but the sorting trio said nope, we're sorting anyway. iykyk.-fFileName β Identifies output should be to a file and specifies the file name. If the path is not included as part of the FileName the path will be thecurrent directory. Sending the whole thing to a file instead of your terminal β lowkey the move for big groups.
Heads up bestie:-0gets overridden by-d,-m, or-sbecause of the sorting that needs to be done when either of those options is used. That's literally how it works, not me being dramatic. π
β EXAMPLES β
Example 1. Find regions that share a region id but disagree on other code settings.
mged>lc -m vehicle.c
Lists only the regions below vehicle.c that share a region id while disagreeing on material, LOS, or aircode values, which is useful before normalizing region attributes with edcodes.
So you run this first, see who's being inconsistent, then go fix it with edcodes. Chef's kiss workflow π
π AUTHOR π
BRL-CAD Team
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
Okay that's the whole page, you're so welcome π This little cutie comes to you from BRL-CAD, filed under LC(nged) in the BRL-CAD User Commands manual β go forth and normalize those region attributes, bestie. πβ¨π
π¦ 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