wcodes filename object(s)
WCODES(nged)
NAME
wcodes - write region attribute codes to a file
On this page
SYNOPSIS
DESCRIPTION
The wcodes command traverses the hierarchy of one or more objects and writes the attribute codes for every region found to filename. The output file is opened in write mode and overwritten if it already exists.
For each region encountered, the following fields are written on a single line:
-
Region ID — the region identifier (
ident) number. -
Air code — the air region code (0 if not an air region).
-
Material code — the GIFT material code.
-
LOS — the line-of-sight percentage (0–100).
-
Path — the full path from one of the input
objectsto the region.
Only objects flagged as regions (combinations with the region flag set) are listed. Non-region combinations are traversed but not output. At least one object argument is required in addition to the filename.
The output format is compatible with the rcodes command, which can be used to restore the attribute values from the file.
EXAMPLES
mged> wcodes codes.txt group1 group2
Writes the region_id, aircode, material code, LOS, and path for every region reachable from group1 and group2 to the file codes.txt.
mged> wcodes saved_codes.txt vehicle.c mged> rcodes saved_codes.txt
Saves all region codes from vehicle.c to saved_codes.txt, then restores them from the file using rcodes.
SEE ALSO
rcodes(nged), idents(nged), wmater(nged), attr(nged)
AUTHOR
BRL-CAD Team
BUG REPORTS
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org