[brlcad-tracker] [ brlcad-Feature Requests-3100785 ] Additional Nirt information
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2010-11-02 18:12:10
|
Feature Requests item #3100785, was opened at 2010-11-01 13:58 Message generated for change (Comment added) made by brlcad You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640805&aid=3100785&group_id=105292 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Raytrace Group: None Status: Closed Resolution: Works For Me Priority: 7 Private: No Submitted By: Bob Anderson (randerson503) Assigned to: Cliff Yapp (starseeker) Summary: Additional Nirt information Initial Comment: How difficult would it be to add the component ID number to the component information lines when performing a nirt? Currently I NIRT to find the components I need and then must list each component to get their respective ID numbers. ---------------------------------------------------------------------- >Comment By: Sean Morrison (brlcad) Date: 2010-11-02 18:12 Message: The nirt documentation talks about an "attr" command -- this is for the *NIRT* command line. The "nirt>" prompt is the interactive prompt you'd get if you run nirt outside of mged (i.e., just like how you ran mged). The docs explain attributes under "Reporting Attributes in MGED: Advanced Formatting and Scripting" starting on page 28. Basically, nirt has a bunch of predefined variables that you can hook into. They're listed in appendix A on page 30 where you'll see that "reg_id" is the predefined way to print the region identifier. That is not, however, the general way to print attributes. You could also use nirt's "attr" command to print the actual "region_id" attribute that is on a region with "attr region_id" as the script. Same value, just different mechanism for getting at the value. Haven't verified, but the persisted nirt settings should be in your .mgedrc resource file. ---------------------------------------------------------------------- Comment By: Bob Anderson (randerson503) Date: 2010-11-02 15:28 Message: One thing I figured out that others may wish to know is that adding the region ID to NIRT uses an abbreviated form of the attribute. If you do an "attr show region" it will list the id as "region_id". This does not work when trying to add it to NIRT. NIRT, however, understands "reg_id". Sean, I used the "Query Ray Control" to change the output of NIRT on a Linux version but was wondering if I close BRL-CAD and reopen it, will it keep the format. I tried and it did. Where is this information stored? ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2010-11-02 14:28 Message: It's perhaps worth noting that BRL-CAD has no notion of a component or a component ID (those are, however, constructs that MUVES overlays). There are regions and region IDs. NIRT will report the regionID if requested. If there are other values (such as an actual component ID) attached to an object as an attribute, you can similarly create a custom NIRT output that will report it. The document I mentioned covers that topic as well. ---------------------------------------------------------------------- Comment By: Bob Anderson (randerson503) Date: 2010-11-01 14:56 Message: Thanks Sean. I looked at all the NIRT options but did not see one that listed the comp ID. I will check again. ---------------------------------------------------------------------- Comment By: Sean Morrison (brlcad) Date: 2010-11-01 14:51 Message: It's not very difficult at all and is actually something that nirt already supports through predefined custom report formats. You have to specify a different report format. See page 18 of the "Interactive Raytracing - The nirt Command" guide under Reporting Options: http://brlcad.org/wiki/Documentation ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=640805&aid=3100785&group_id=105292 |