Revision: 56934
          http://sourceforge.net/p/brlcad/code/56934
Author:   tbrowder2
Date:     2013-08-18 18:41:35 +0000 (Sun, 18 Aug 2013)
Log Message:
-----------
trying to clarify some apparent anomalies in region attributes; add another 
attr set example

Modified Paths:
--------------
    brlcad/trunk/doc/docbook/system/mann/en/attr.xml

Modified: brlcad/trunk/doc/docbook/system/mann/en/attr.xml
===================================================================
--- brlcad/trunk/doc/docbook/system/mann/en/attr.xml    2013-08-18 17:53:06 UTC 
(rev 56933)
+++ brlcad/trunk/doc/docbook/system/mann/en/attr.xml    2013-08-18 18:41:35 UTC 
(rev 56934)
@@ -44,6 +44,28 @@
     space, and if attribute values contain embedded white space, they must be 
surrounded
     by {} or double quotes.
   </para>
+
+  <para>Note that a newly formed region always has four attributes assigned to 
it:</para>
+  <unorderedlist>
+    <listitem>los<listitem>
+    <listitem>material_id<listitem>
+    <listitem>region<listitem>
+    <listitem>region_id<listitem>
+  </unorderedlist>
+
+  <para>The 'region' attribute is the 'region flag' mentioned in the
+  edcodes command.  Somewhat confusingly though, immediately upon
+  completing the 'r' (region) command in mged, this message is
+  displayed:</para>
+
+  <programlisting>
+Defaulting item number to 1001
+Creating region with attrs: region_id=1000, air=0, los=0, material_id=1
+  </programlisting>
+
+  <para>However, the air attribute will not show in a 'attr show' command 
unless
+  it is set to a non-zero value.</para>
+
 </refsection>
 
 <refsection xml:id="examples"><title>EXAMPLES</title>
@@ -52,11 +74,25 @@
     The examples demonstrate the use of the <command>attr</command> command 
and subcommands to
     assign and list attributes of database objects.
   </para>
+
   <example><title>Assigns an attribute to an object.</title>
+    <variablelist>
+      <varlistentry>
+       <term><prompt>mged&gt;</prompt> <userinput>attr set region_1 
material_id 10</userinput></term>
+       <listitem>
+         <para>
+           Assigns an attribute name "material_id" to 
<emphasis>region_1</emphasis>. Its
+           value is 10.
+         </para>
+       </listitem>
+      </varlistentry>
+    </variablelist>
+  </example>
 
+  <example><title>Assigns an attribute (with embedded white space in its 
value) to an object.</title>
     <variablelist>
       <varlistentry>
-       <term><prompt>mged</prompt><userinput>attr set region_1 comment {This 
is a comment for region_1}</userinput></term>
+       <term><prompt>mged&gt;</prompt> <userinput>attr set region_1 comment 
{This is a comment for region_1}</userinput></term>
        <listitem>
          <para>
            Assigns an attribute named "comment" to 
<emphasis>region_1</emphasis>. Its
@@ -68,10 +104,9 @@
   </example>
 
   <example><title>List all the attributes for an object</title>
-
     <variablelist>
       <varlistentry>
-       <term><prompt>mged</prompt><userinput>attr show region_1 
comment</userinput></term>
+       <term><prompt>mged&gt;</prompt> <userinput>attr show region_1 
comment</userinput></term>
     <listitem>
        <para>Lists all the attributes for <emphasis>region_1</emphasis>.
        </para>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to