[brlcad-commits] SF.net SVN: brlcad:[33429] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33429 http://brlcad.svn.sourceforge.net/brlcad/?rev=33429&view=rev Author: starseeker Date: 2008-12-22 22:31:06 + (Mon, 22 Dec 2008) Log Message: --- Add docbook copyeval man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/copyeval.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:24:16 UTC (rev 33428) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:31:06 UTC (rev 33429) @@ -61,6 +61,7 @@ center.xml \ color.xml \ comb_color.xml \ + copyeval.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/copyeval.xml === --- brlcad/trunk/doc/docbook/system/man1/en/copyeval.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/copyeval.xml2008-12-22 22:31:06 UTC (rev 33429) @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +COPYEVAL +1 +BRL-CAD +BRL-CAD User Commands + + + +copyeval +Creates a new primitive object called new_ primitiveby +applying the transformation matrices accumulated along the +path_to_old_primitive to the leaf primitive shape object at the end +of the path and saving the result under the name new_ primitive. + + + + + + + copyeval + new_primitive path_to_old_primitive + + + + +DESCRIPTION +Objects in a BRL-CAD model are stored as Boolean trees +(combinations), with the members being primitive shapes or other Boolean trees. Each +member has a transformation matrix associated with it. This arrangement allows a +primitive to be a member of a combination, and that combination may be a member of another +combination, and so on. When a combination is displayed, the transformation +matrices are applied to its members and passed down through the combinations to the +leaf (primitive shape) level. The accumulated transformation matrix is then applied +to the primitive before it is drawn on the screen. The copyeval command +creates a new primitive object called new_ primitive by applying the +transformation matrices accumulated along the path_to_old_primitive to +the leaf primitive shape object at the end of the path and saving the result under the name +new_ primitive. The path_to_old_ primitive must +be a legitimate path ending with a primitive shape. + + + + +EXAMPLES + + The example shows the use of the copyeval command to create + a new primitive by applying the transformation matrices along the path to the old + primitive. + + + Create a new primitive object by applying the transformtion matrices along the path + to the old primitive. + mged> copyeval shapeb comb1/comb2/comb3/shapea + Creates shapeb from shapea by applying the accumulated transformation matrices from the path comb1/comb2/comb3. + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/copyeval.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33426] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33426 http://brlcad.svn.sourceforge.net/brlcad/?rev=33426&view=rev Author: starseeker Date: 2008-12-22 21:39:27 + (Mon, 22 Dec 2008) Log Message: --- Add docbook center man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/center.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:27:58 UTC (rev 33425) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 21:39:27 UTC (rev 33426) @@ -58,6 +58,7 @@ bwscale.xml \ c.xml \ cat.xml \ + center.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/center.xml === --- brlcad/trunk/doc/docbook/system/man1/en/center.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/center.xml 2008-12-22 21:39:27 UTC (rev 33426) @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CENTER +1 +BRL-CAD +BRL-CAD User Commands + + + +center +Positions the center of the mged viewing +cube at the specified model coordinates. + + + + + + + center + x y z + + + + +DESCRIPTION + + Positions the center of the mged viewing cube at the specified + model coordinates. This is accomplished by moving the eye position while not + changing the viewing direction. (The lookat command performs a + related function by changing the viewing direction, but not moving the eye location.) + The coordinates are expected in the current editing units. In case the coordinates + are the result of evaluating a formula, they are echoed back. If no coordinates are + provided, the current center coordinates (in current editing units, not mm) are + printed and can be used in subsequent calculations. + + + It is often convenient to use the center of the view when visually selecting key + locations in the model for construction or animation because of (1) the visible + centering dot on the screen, (2) the fact that zoom and rotation are performed with + respect to the view center, (3) the default center-mouse behavior is to move the + indicated point to the view center, and (4) the angle/distance cursors are centered by + default. This command provides the means to set and retrieve those values + numerically. + + + + +EXAMPLES + + The examples show the use of the center command to print + coordinates of the center of the mged display, move the center of the + mged display to a given point, set a Tcl variable to the + display center coodinates, move the center point a given distance + in a given direction, and update a vertex in the database to be located at + the current center of view. + + + Printing the coordinates of the center of the mged display. + + mged> center + + Prints out the coordinates of the center of the mged display. + + + + + Moving the center of the mged display to a specified point. + + mged>center 12.5 5.6 8.7> + + The center of the mged display is moved to the point (12.5, 5.6, 8.7). + + + + Set Tcl variable $oldcent to the display center coordinates. + + mged>set oldcent [center] + + + Sets the Tcl variable $oldcent to the display center coordinates. + + + + + Move the center point a given distance in a given direction. + + + mged> set glob_compat_mode 0 + + + mged units mm + + + mged eval center [vadd2[center] {2 0 0}] + + + Moves the center point 2 mm in the model + x direction. + + + + + + + Update the vertex of a shape in the database to be located at the current + center of the view and recreate the vector display lists of objects that were affected by the change. + + + mged> units mm + + + mged db adjust sphere.s V [center] + + + mged redraw_vlist sphere.s + + + Updates the "V" vertex of shape sphere.s in the database to be located at + the current center of the view, and recreates the vector display lists of + only those object(s) that were affected by the change. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG R
[brlcad-commits] SF.net SVN: brlcad:[33427] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33427 http://brlcad.svn.sourceforge.net/brlcad/?rev=33427&view=rev Author: starseeker Date: 2008-12-22 22:20:31 + (Mon, 22 Dec 2008) Log Message: --- Add docbook color man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/color.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 21:39:27 UTC (rev 33426) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:20:31 UTC (rev 33427) @@ -59,6 +59,7 @@ c.xml \ cat.xml \ center.xml \ + color.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/color.xml === --- brlcad/trunk/doc/docbook/system/man1/en/color.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/color.xml 2008-12-22 22:20:31 UTC (rev 33427) @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +COLOR +1 +BRL-CAD +BRL-CAD User Commands + + + +color +Creates an entry in the database that functions as part of a color +lookup table for displayed regions. + + + + + + + color + low high r g b str + + + + +DESCRIPTION + + Creates an entry in the database that functions as part of a color + lookup table for displayed regions. The ident number for the region is used to find + the appropriate color from the lookup table. The low and + high values are the limits of region ident numbers to have the + indicated rgb color (0-255) applied. The str + parameter is intended to be an identifying character string, but is currently ignored. + The current list of color table entries may be displayed with the + prcolor command, and the entire color table may be edited using + the edcolor command. If a color lookup table exists, its entries + will override any color assigned using the mater + command. + + + + +EXAMPLES + + The example shows the use of the color command to make an entry in the + color lookup table for regions within a specified range of idents. + + + Making an entry in the color lookup table for regions within a specified + range of idents using the color red. + + mged> color 1100 1200 255 0 0 fake_string + + + Makes an entry in the color lookup table for regions with idents from 1100-1200 using the color red. + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + \ No newline at end of file Property changes on: brlcad/trunk/doc/docbook/system/man1/en/color.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33428] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33428 http://brlcad.svn.sourceforge.net/brlcad/?rev=33428&view=rev Author: starseeker Date: 2008-12-22 22:24:16 + (Mon, 22 Dec 2008) Log Message: --- Add docbook comb_color man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/comb_color.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:20:31 UTC (rev 33427) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:24:16 UTC (rev 33428) @@ -60,6 +60,7 @@ cat.xml \ center.xml \ color.xml \ + comb_color.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/comb_color.xml === --- brlcad/trunk/doc/docbook/system/man1/en/comb_color.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/comb_color.xml 2008-12-22 22:24:16 UTC (rev 33428) @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +COMB_COLOR +1 +BRL-CAD +BRL-CAD User Commands + + + +comb_color + + + + + + + + comb_color + combination_name r g b + + + + +DESCRIPTION +Assigns the color rgb(0-255) to the existing +combination named combination_name. + + + + +EXAMPLES +The example shows the use of the command comb_color to assign a +specific color to a specific region. + + + Assign a color to a specific region. + + mged> comb_color region1 0 255 0 + + + Assigns the color green to region1. + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/comb_color.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33430] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33430 http://brlcad.svn.sourceforge.net/brlcad/?rev=33430&view=rev Author: starseeker Date: 2008-12-22 22:35:07 + (Mon, 22 Dec 2008) Log Message: --- Add docbook copymat man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/copymat.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:31:06 UTC (rev 33429) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 22:35:07 UTC (rev 33430) @@ -62,6 +62,7 @@ color.xml \ comb_color.xml \ copyeval.xml \ + copymat.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/copymat.xml === --- brlcad/trunk/doc/docbook/system/man1/en/copymat.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/copymat.xml 2008-12-22 22:35:07 UTC (rev 33430) @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +COPYMAT +1 +BRL-CAD +BRL-CAD User Commands + + + +copymat +Copies the transformation matrix from a member of one +combination to the member of another. + + + + + + + copymat + comb1/memb1 comb2/memb2 + + + + +DESCRIPTION +Copies the transformation matrix from a member of one +combination to the member of another. + + + + +EXAMPLES +The example shows the use of the copymat command to set the +matrix for a member in one combination equal to the matrix for another member in +another combination. + + + Set the matrix for a member in one combination equal to the matrix for another member in another combination. + + mged> copymat comb1/memb1 comb2/memb2 + Sets the matrix for member memb2 in combination comb2 equal to the matrix for member memb1 in combination comb1. + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/copymat.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33425] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33425 http://brlcad.svn.sourceforge.net/brlcad/?rev=33425&view=rev Author: starseeker Date: 2008-12-22 19:27:58 + (Mon, 22 Dec 2008) Log Message: --- Add docbook cat man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/cat.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:22:20 UTC (rev 33424) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:27:58 UTC (rev 33425) @@ -57,6 +57,7 @@ build_region.xml \ bwscale.xml \ c.xml \ + cat.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/cat.xml === --- brlcad/trunk/doc/docbook/system/man1/en/cat.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/cat.xml 2008-12-22 19:27:58 UTC (rev 33425) @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CAT +1 +BRL-CAD +BRL-CAD User Commands + + + +cat +Displays a brief description of each item in the list of +objects. + + + + + + + cat + objects + + + + +DESCRIPTION + + Displays a brief description of each item in the list of objects. + If the item is a primitive shape, the type of shape and its vertex are displayed. If the + item is a combination, the Boolean formula for that combination - including + operands, operators, and parentheses - is displayed. If the combination is flagged as + a region, then that fact is also displayed along with the region's ident code, air code, + los, and GIFT material code. + + + + +EXAMPLES + + The example shows the use of the cat command to display Boolean + formulas for two regions. + + + Displaying Boolean formulas for two regions. + + + mged> cat region_1 region_2 + + Displays the Boolean formulas for region_1 and region_2. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/cat.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33424] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33424 http://brlcad.svn.sourceforge.net/brlcad/?rev=33424&view=rev Author: starseeker Date: 2008-12-22 19:22:20 + (Mon, 22 Dec 2008) Log Message: --- Add docbook c man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/c.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:16:25 UTC (rev 33423) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:22:20 UTC (rev 33424) @@ -56,6 +56,7 @@ bot_vertex_fuse.xml \ build_region.xml \ bwscale.xml \ + c.xml \ g_qa.xml \ mged.xml \ nirt.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/c.xml === --- brlcad/trunk/doc/docbook/system/man1/en/c.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/c.xml 2008-12-22 19:22:20 UTC (rev 33424) @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +C +1 +BRL-CAD +BRL-CAD User Commands + + + +c +Creates a BRL-CAD combination with the name +combination_name. + + + + + + + c + -c + -r + combination_name + Boolean_expression + + + + +DESCRIPTION +The c command creates a BRL-CAD combination +with the name combination_name. The -r option +indicates that the combination is a BRL-CAD region. The +-c option is the default and indicates that the combination is not +a region. The Boolean_expression allows parentheses. Where no order +is specified, intersections are performed before subtractions or unions; then subtractions +and unions are performed, left to right. Where there is no Boolean_expression +and combination_name, a new +empty combination will be created. If no Boolean_expression is provided, +and combination_name does already exist and one of -c +or -r is specified, then combination_name is +flagged to agree with the indicated option. If a new region is created +or an existing combination is flagged as a region with this command, its region-specific +attributes will be set according to the current defaults (see regdef). +The comb and r commands may also be used to create +combinations. + + + + +EXAMPLES + + The example shows how to use the c command to create a combination + according to a given formula. + + + Creating a combination according to a formula. + + + mged> c -c abc (a u b)-(a + d) + + Creates a combination named abc according to the formula + (a u b) - (a + d). + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/c.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33423] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33423 http://brlcad.svn.sourceforge.net/brlcad/?rev=33423&view=rev Author: starseeker Date: 2008-12-22 19:16:25 + (Mon, 22 Dec 2008) Log Message: --- Add docbook build_region man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/build_region.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:08:06 UTC (rev 33422) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:16:25 UTC (rev 33423) @@ -54,6 +54,7 @@ bot_face_fuse.xml \ bot_face_sort.xml \ bot_vertex_fuse.xml \ + build_region.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/build_region.xml === --- brlcad/trunk/doc/docbook/system/man1/en/build_region.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/build_region.xml2008-12-22 19:16:25 UTC (rev 33423) @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BUILD_REGION +1 +BRL-CAD +BRL-CAD User Commands + + + +build_region + + Builds a region from existing solids that have + specifically formatted names based on the provided tags and numbers. + + + + + + + build_region + -a region_num + tag start_num end_num + + + + +DESCRIPTION + + Builds a region from existing solids that have specifically formatted names + based on the provided tags and numbers. The created region will be named "tag.rx," + where "x" is the first number (starting from 1) that produces an unused region + name. If the -a option is used, then the specified + "region_num" will be used for "x." If that region already exists, this operation will + append the new geometry to the existing region definition. If that region does not + exist, a new one will be created. The solids that will be involved in this operation + are those with names of the form "tag.s#" or "tag.s#o@," where "#" is a number + between start_num and end_num inclusive, + "o" is either "u," "-," or "+," and "@" is any number. + The operators and numbers coded into the solid names are used to build the region. + + + + +EXAMPLES +The example demonstrates how to use the build_region command to +build a region from existing solids. + + + Build a region from existing solids + + + mged> buid_region abc 1 2 + + Creates a region named "abc.r1" consisting of: + + u abc.s1 + u abc.s2 + + abc.s2+1 + - abc.s2-1 + + provided that the above shapes already exist in the database. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/build_region.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33422] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33422 http://brlcad.svn.sourceforge.net/brlcad/?rev=33422&view=rev Author: starseeker Date: 2008-12-22 19:08:06 + (Mon, 22 Dec 2008) Log Message: --- Add docbook bot_vertex_fuse man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/bot_vertex_fuse.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:03:21 UTC (rev 33421) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:08:06 UTC (rev 33422) @@ -53,6 +53,7 @@ bot_decimate.xml \ bot_face_fuse.xml \ bot_face_sort.xml \ + bot_vertex_fuse.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/bot_vertex_fuse.xml === --- brlcad/trunk/doc/docbook/system/man1/en/bot_vertex_fuse.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/bot_vertex_fuse.xml 2008-12-22 19:08:06 UTC (rev 33422) @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BOT_VERTEX_FUSE +1 +BRL-CAD +BRL-CAD User Commands + + + +bot_vertex_fuse + + Used to eliminate duplicate vertices from a BOT solid. + + + + + + + bot_vertex_fuse + new_bot_solid + old_bot_primitive> + + + + +DESCRIPTION + + Used to eliminate duplicate vertices from a BOT solid. It returns + the number of vertices eliminated. No tolerance is used, so the + vertices must match exactly to be considered duplicates. + + + + +EXAMPLES + + The example shows the use of the bot_vertex_fuse command + to eliminate duplicate vertices from a BOT solid and store the result in a new + BOT primitive. + + + Elimiating duplicate vertices form a primitive and storing the result in a new BOT primitive. + + + mged> bot_vertex_fuse bot1_fused bot1_original + + + Eliminates any duplicate vertices from the primitive named + bot1_original and stores the result in the new BOT primitive + named bot1_fused. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/bot_vertex_fuse.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33421] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33421 http://brlcad.svn.sourceforge.net/brlcad/?rev=33421&view=rev Author: starseeker Date: 2008-12-22 19:03:21 + (Mon, 22 Dec 2008) Log Message: --- Add docbook bot_face_sort man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/bot_face_sort.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 18:58:22 UTC (rev 33420) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 19:03:21 UTC (rev 33421) @@ -52,6 +52,7 @@ bot_condense.xml \ bot_decimate.xml \ bot_face_fuse.xml \ + bot_face_sort.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/bot_face_sort.xml === --- brlcad/trunk/doc/docbook/system/man1/en/bot_face_sort.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/bot_face_sort.xml 2008-12-22 19:03:21 UTC (rev 33421) @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BOT_FACE_SORT +1 +BRL-CAD +BRL-CAD User Commands + + + +bot_face_sort + + Sorts the list of triangles that constitutes the BOT primitive to + optimize it for raytracing with the specified number of triangles per + piece. + + + + + + + bot_face_sort + triangles_per_piece + bot_primitive1> + choice='opt'bot_primitive2 bot_primitive3 + + + + +DESCRIPTION + + Used to sort the list of triangles that constitutes the BOT primitive + to optimize it for raytracing with the specified number of triangles per + piece. Most BRL-CAD primitives are treated as a single object when a model is + being prepared for raytracing, but BOT primitives are normally broken into "pieces" + to improve performance. The raytracer normally uses four triangles per piece. + + + + +EXAMPLES + + The example shows the use of the bot_face_sort command to sort + the list of triangles that constitutes the BOT primitive to optimize it for raytracing. + + + Sorting the faces of two primitives (each having four triangles per piece) to optimize them for raytracing + + + mged> bot_face_sort 4 bot1 bot2 + + + The faces of bot1 and bot2 to optimize + them for raytracing with four triangles per piece. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + \ No newline at end of file Property changes on: brlcad/trunk/doc/docbook/system/man1/en/bot_face_sort.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33420] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33420 http://brlcad.svn.sourceforge.net/brlcad/?rev=33420&view=rev Author: starseeker Date: 2008-12-22 18:58:22 + (Mon, 22 Dec 2008) Log Message: --- Add docbook bot_face_fuse man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/bot_face_fuse.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 18:54:19 UTC (rev 33419) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 18:58:22 UTC (rev 33420) @@ -51,6 +51,7 @@ bev.xml \ bot_condense.xml \ bot_decimate.xml \ + bot_face_fuse.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/bot_face_fuse.xml === --- brlcad/trunk/doc/docbook/system/man1/en/bot_face_fuse.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/bot_face_fuse.xml 2008-12-22 18:58:22 UTC (rev 33420) @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BOT_FACE_FUSE +1 +BRL-CAD +BRL-CAD User Commands + + + +bot_face_fuse +Eliminates duplicate faces from a BOT solid. + + + + + + + bot_face_fuse + new_bot_primitive +old_bot_primitive + + + + +DESCRIPTION + + Eliminates duplicate faces from a BOT solid. + It returns the number of faces eliminated. + + + + +EXAMPLES + + The example demonstrates the use of the bot_face_fuse command to eliminate + duplicate faces from a BOT primitive. + + + + Removing duplicate faces from one BOT and storing the results in a new BOT primitive. + + + + mged> bot_face_fuse bot1_fused bot1_original + + + Eliminates any duplicate faces from the primitive named + bot1_original and stores the result in the + new BOT primitive named bot1_fused. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/bot_face_fuse.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33419] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33419 http://brlcad.svn.sourceforge.net/brlcad/?rev=33419&view=rev Author: starseeker Date: 2008-12-22 18:54:19 + (Mon, 22 Dec 2008) Log Message: --- Add docbook bot_decimate man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/bot_decimate.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:57:01 UTC (rev 33418) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 18:54:19 UTC (rev 33419) @@ -50,6 +50,7 @@ autoview.xml \ bev.xml \ bot_condense.xml \ + bot_decimate.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/bot_decimate.xml === --- brlcad/trunk/doc/docbook/system/man1/en/bot_decimate.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/bot_decimate.xml2008-12-22 18:54:19 UTC (rev 33419) @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BOT_DECIMATE +1 +BRL-CAD +BRL-CAD User Commands + + + +bot_decimate + + Reduces the number of triangles in the + old_bot_primitive and saves the results to the + new_bot_primitive. + + + + + + + bot_decimate + -c maximum_chord_error + -n maximum_normal_error + -e minimum_edge_length + new_bot_primitive + old_bot_primitive + + + + +DESCRIPTION + Reduces the number of triangles in the old_bot_primitive +and saves the results to the new_bot_primitive. +The reduction is accomplished through an edge decimation algorithm. Only changes that do not +violate the specified constraints are performed. The maximum_chord_error +parameter specifies the maximum distance allowed between the original surface and +the surface of the new BOT primitive in the current editing units. The +maximum_normal_error specifies the maximum change in surface normal (degrees) +between the old and new surfaces. The minimum_edge_length specifies +the length of the longest edge that will be decimated. At least one constraint must be +supplied. If more than one constraint is specified, then only operations that satisfy all +the constraints are performed. + + + + +EXAMPLES + + These examples demonstrate the use of the bot_decimate command to + create new primitives by reducing the number of triangles within certain constraints. + + + Decimate Specifying Chord Error and Max Normal Error + + Creating a new BOT primitive by reducing the number of triangles in the old BOT primitive + and specifying the maximum chord error and maximum normal error between the old and new + primitives. + + + + mged> bot_decimate -c 0.5 -n 10.0 bot.new abot + + + Creates a new BOT primitive named bot.newby reducing the number + of triangles in abot while keeping the resulting surface within + 0.5 units of the surface of abot and keeping the surface normals + within 10 degrees. + + + Note that the constraints specified only relate the output BOT primitive to the input + BOT primitive for a single invocation of the command. Repeated application of this + command on its own BOT output will result in a final BOT primitive that has + unknown relationships to the original BOT primitive. For example: + + + + + mged> bot_decimate -c 10.0 bot_b bot_a + + + mged> bot_decimate -c 10.0 bot_c bot_b + + + + This sequence of commands will produce primitive bot_cwith + up to 20.0 units of chord error between bot_a and + bot_c. + + + + + mged> bot_decimate -c 10.0 bot_b bot_a + + + mged> bot_decimate -n 5.0 bot_c bot_b + + + This sequence of commands will produce primitive bot_c with + no guaranteed relationships to bot_a. + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/bot_decimate.xml
[brlcad-commits] SF.net SVN: brlcad:[33418] brlcad/trunk/NEWS
Revision: 33418 http://brlcad.svn.sourceforge.net/brlcad/?rev=33418&view=rev Author: brlcad Date: 2008-12-22 15:57:01 + (Mon, 22 Dec 2008) Log Message: --- more conversion of documentation to docbook format, thx janine (and cliff via proxy) Modified Paths: -- brlcad/trunk/NEWS Modified: brlcad/trunk/NEWS === --- brlcad/trunk/NEWS 2008-12-22 15:52:15 UTC (rev 33417) +++ brlcad/trunk/NEWS 2008-12-22 15:57:01 UTC (rev 33418) @@ -14,6 +14,7 @@ --- 2008-XX-XX Release 7.XX.X --- -- +* more conversion of documentation to Docbook format - Janine Gettier * removed the unused 'k'eypoint point on extrudes - Sean Morrison * added new dem-g terrain importer - Richard Weiss * layout tweaks to display of selection lists in archer - Doug Howard This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33417] brlcad/trunk/doc/docbook/system/man1/en/ bot_condense.xml
Revision: 33417 http://brlcad.svn.sourceforge.net/brlcad/?rev=33417&view=rev Author: starseeker Date: 2008-12-22 15:52:15 + (Mon, 22 Dec 2008) Log Message: --- Uh, yeah... add the man page too, not just the Makefile.am change... Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/bot_condense.xml Added: brlcad/trunk/doc/docbook/system/man1/en/bot_condense.xml === --- brlcad/trunk/doc/docbook/system/man1/en/bot_condense.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/bot_condense.xml2008-12-22 15:52:15 UTC (rev 33417) @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BOT_CONDENSE +1 +BRL-CAD +BRL-CAD User Commands + + + +bot_condense + + Used to eliminate unused vertices from a BOT primitive. + + + + + + + bot_condense + new_bot_primitive + old_bot_primitive + + + + +DESCRIPTION + + Used to eliminate unused vertices from a BOT primitive. It returns + the number of vertices eliminated. + + + + +EXAMPLES + + The examples shows the use of the bot_condense + command to eliminate unused vertices from a BOT primitive and store + the result in a new BOT primitive. + + + + Basic Condensing + + + Eliminating unused vertices from a primitive named + bot1_original and storing + the result in a new primitive named bot1_condensed. + + + + mged> bot_condense bot1_condensed bot1_original + + The unused vertices were deleted from bot1_original and the result was saved in bot1_condensed. + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/bot_condense.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33416] brlcad/trunk/doc/docbook/system/man1/en/Makefile .am
Revision: 33416 http://brlcad.svn.sourceforge.net/brlcad/?rev=33416&view=rev Author: starseeker Date: 2008-12-22 15:51:20 + (Mon, 22 Dec 2008) Log Message: --- Add docbook bot_condense man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:42:31 UTC (rev 33415) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:51:20 UTC (rev 33416) @@ -49,6 +49,7 @@ attr.xml \ autoview.xml \ bev.xml \ + bot_condense.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33415] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33415 http://brlcad.svn.sourceforge.net/brlcad/?rev=33415&view=rev Author: starseeker Date: 2008-12-22 15:42:31 + (Mon, 22 Dec 2008) Log Message: --- Add docbook bev man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/bev.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:37:51 UTC (rev 33414) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:42:31 UTC (rev 33415) @@ -48,6 +48,7 @@ attach.xml \ attr.xml \ autoview.xml \ + bev.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/bev.xml === --- brlcad/trunk/doc/docbook/system/man1/en/bev.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/bev.xml 2008-12-22 15:42:31 UTC (rev 33415) @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BEV +1 +BRL-CAD +BRL-CAD User Commands + + + +bev +Performs the operations indicated in the Boolean_formula and +stores the result in new_obj. + + + + + + + bev + -t + -P# + new_obj + Boolean_formula + + + + +DESCRIPTION + + Performs the operations indicated in the Boolean_formula and + stores the result in new_obj. The new_obj + will be stored as an NMG shape (it may be converted to a polysolid by using the + nmg_simplify command). If the -t option is specified, then the + resulting object will consist entirely of triangular facets. The + default is to allow facets of any complexity, including holes. The -P + option specifies the number of CPUs to use for the calculation (however, this is + currently ignored). Only simple Boolean_formulas are allowed. + No parentheses are allowed and the operations are performed from left to right with + no precedence. More complex expressions must be expressed as BRL-CAD objects using + the r, g, or ccommands and + evaluated using the facetize or ev commands. + + + + +EXAMPLES + + The example demonstrates the use of the bev command with the + -t option to create a triangulated object. + + + Creating a triangulated object by intersecting two objects + + + mged> bev -t triangulated_lens sphere1 + sphere2 + + Creates a triangulated object by intersecting objects sphere1 and sphere2 + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/bev.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33414] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33414 http://brlcad.svn.sourceforge.net/brlcad/?rev=33414&view=rev Author: starseeker Date: 2008-12-22 15:37:51 + (Mon, 22 Dec 2008) Log Message: --- Add docbook autoview man page - conversion by Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/autoview.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:34:42 UTC (rev 33413) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:37:51 UTC (rev 33414) @@ -47,6 +47,7 @@ arot.xml \ attach.xml \ attr.xml \ + autoview.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/autoview.xml === --- brlcad/trunk/doc/docbook/system/man1/en/autoview.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/autoview.xml2008-12-22 15:37:51 UTC (rev 33414) @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +AUTOVIEW +1 +BRL-CAD +BRL-CAD User Commands + + + +autoview + Display all objects within the view. + + + + + + + autoview + + + + +DESCRIPTION + + Resets the view size and the view center such that all + displayed objects are within the view. + + + + +EXAMPLES + + Reset view size and center so that all displayed objects are within the view. + + + mged> autoview + + + The view resets so that all objects displayed can be seen. + + + + + + + + + +AUTHOR +BRL-CAD Team + + + +BUG REPORTS + + Reports of bugs or problems should be submitted via electronic + mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/autoview.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33413] brlcad/trunk/src/mged
Revision: 33413 http://brlcad.svn.sourceforge.net/brlcad/?rev=33413&view=rev Author: bob1961 Date: 2008-12-22 15:34:42 + (Mon, 22 Dec 2008) Log Message: --- Exposing libged's tire command. Modified Paths: -- brlcad/trunk/src/mged/cmd.c brlcad/trunk/src/mged/mged.h brlcad/trunk/src/mged/setup.c Modified: brlcad/trunk/src/mged/cmd.c === --- brlcad/trunk/src/mged/cmd.c 2008-12-22 15:31:56 UTC (rev 33412) +++ brlcad/trunk/src/mged/cmd.c 2008-12-22 15:34:42 UTC (rev 33413) @@ -3064,6 +3064,27 @@ } int +cmd_tire(ClientDataclientData, +Tcl_Interp *interp, +intargc, +char **argv) +{ +int ret; +Tcl_DString ds; + +Tcl_DStringInit(&ds); + +ret = ged_tire(gedp, argc, argv); +Tcl_DStringAppend(&ds, bu_vls_addr(&gedp->ged_result_str), -1); +Tcl_DStringResult(interp, &ds); + +if (ret == BRLCAD_OK) + return TCL_OK; + +return TCL_ERROR; +} + +int cmd_stub(ClientDataclientData, Tcl_Interp *interp, intargc, Modified: brlcad/trunk/src/mged/mged.h === --- brlcad/trunk/src/mged/mged.h2008-12-22 15:31:56 UTC (rev 33412) +++ brlcad/trunk/src/mged/mged.h2008-12-22 15:34:42 UTC (rev 33413) @@ -565,6 +565,10 @@ Tcl_Interp *interp, int argc, char **argv); +extern int cmd_tire(ClientData clientData, + Tcl_Interp *interp, + int argc, + char**argv); /* color_scheme.c */ void cs_set_bg(void); Modified: brlcad/trunk/src/mged/setup.c === --- brlcad/trunk/src/mged/setup.c 2008-12-22 15:31:56 UTC (rev 33412) +++ brlcad/trunk/src/mged/setup.c 2008-12-22 15:34:42 UTC (rev 33413) @@ -332,6 +332,7 @@ {"t_muves", f_t_muves}, {"ted", f_tedit}, {"tie", f_tie}, +{"tire", cmd_tire}, {"title", cmd_title}, {"tol", cmd_tol}, {"top",bv_top}, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33412] brlcad/trunk/doc/docbook/system/man1/en
Revision: 33412 http://brlcad.svn.sourceforge.net/brlcad/?rev=33412&view=rev Author: starseeker Date: 2008-12-22 15:31:56 + (Mon, 22 Dec 2008) Log Message: --- Add attr command Docbook, Janine and Cliff Modified Paths: -- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am Added Paths: --- brlcad/trunk/doc/docbook/system/man1/en/attr.xml Modified: brlcad/trunk/doc/docbook/system/man1/en/Makefile.am === --- brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:25:18 UTC (rev 33411) +++ brlcad/trunk/doc/docbook/system/man1/en/Makefile.am 2008-12-22 15:31:56 UTC (rev 33412) @@ -46,6 +46,7 @@ area.xml \ arot.xml \ attach.xml \ + attr.xml \ bwscale.xml \ g_qa.xml \ mged.xml \ Added: brlcad/trunk/doc/docbook/system/man1/en/attr.xml === --- brlcad/trunk/doc/docbook/system/man1/en/attr.xml (rev 0) +++ brlcad/trunk/doc/docbook/system/man1/en/attr.xml2008-12-22 15:31:56 UTC (rev 33412) @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ATTR + 1 + BRL-CAD + BRL-CAD User Commands + + + + attr + Used to create, change, retrieve, or view attributes of database +objects. + + + + + + +attr +get +set +rm +append +show +object_name +arguments + + + + + DESCRIPTION + +Used to create, change, retrieve, or view attributes of database +objects. The arguments for "set" and "append" subcommands are attribute +name/value pairs. The arguments for "get," "rm," and "show" subcommands are +attribute names. The "set" subcommand sets the specified attributes for the object. +The "append" subcommand appends the provided value to an existing attribute, or +creates a new attribute if it does not already exist. The "get" subcommand retrieves +and displays the specified attributes. The "rm" subcommand deletes the specified +attributes. The "show" subcommand does a "get" and displays the results in a user +readable format. Note that the attribute names may not contain embedded white +space, and if attribute values contain embedded white space, they must be surrounded +by {} or double quotes. + + + + + EXAMPLES + +The examples demonstrate the use of the attr command and subcommands to +assign and list attributes of database objects. + + +Assigns an attribute to an object. + + + mgedattr set region_1 comment {This is a comment for region_1} + + + Assigns an attribute named "comment" to region_1. Its + value is "This is a comment for region_1." + + + + + + + +List all the attributes for an object + + + mgedattr show region_1 comment + Lists all the attributes for region_1. + + + + + + + + + AUTHOR + BRL-CAD Team + + + + BUG REPORTS + +Reports of bugs or problems should be submitted via electronic +mail to, or via the "cadbug.sh" script. + + + + Property changes on: brlcad/trunk/doc/docbook/system/man1/en/attr.xml ___ Added: svn:mime-type + text/xml Added: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits
[brlcad-commits] SF.net SVN: brlcad:[33411] brlcad/trunk/src/mged
Revision: 33411 http://brlcad.svn.sourceforge.net/brlcad/?rev=33411&view=rev Author: bob1961 Date: 2008-12-22 15:25:18 + (Mon, 22 Dec 2008) Log Message: --- Initial modifications to make libged commands available to MGED. The first test case exposes the gqa command. Modified Paths: -- brlcad/trunk/src/mged/cmd.c brlcad/trunk/src/mged/mged.c brlcad/trunk/src/mged/mged.h brlcad/trunk/src/mged/setup.c Modified: brlcad/trunk/src/mged/cmd.c === --- brlcad/trunk/src/mged/cmd.c 2008-12-22 15:22:40 UTC (rev 33410) +++ brlcad/trunk/src/mged/cmd.c 2008-12-22 15:25:18 UTC (rev 33411) @@ -3043,6 +3043,27 @@ } int +cmd_gqa(ClientData clientData, + Tcl_Interp *interp, + int argc, + char**argv) +{ +int ret; +Tcl_DString ds; + +Tcl_DStringInit(&ds); + +ret = ged_gqa(gedp, argc, argv); +Tcl_DStringAppend(&ds, bu_vls_addr(&gedp->ged_result_str), -1); +Tcl_DStringResult(interp, &ds); + +if (ret == BRLCAD_OK) + return TCL_OK; + +return TCL_ERROR; +} + +int cmd_stub(ClientDataclientData, Tcl_Interp *interp, intargc, Modified: brlcad/trunk/src/mged/mged.c === --- brlcad/trunk/src/mged/mged.c2008-12-22 15:22:40 UTC (rev 33410) +++ brlcad/trunk/src/mged/mged.c2008-12-22 15:25:18 UTC (rev 33411) @@ -71,6 +71,7 @@ #include "mater.h" #include "libtermio.h" #include "db.h" +#include "ged.h" /* private */ #include "./mged.h" @@ -146,6 +147,7 @@ int pipe_out[2]; int pipe_err[2]; +struct ged *gedp = GED_NULL; struct db_i *dbip = DBI_NULL; /* database instance pointer */ struct rt_wdb *wdbp = RT_WDB_NULL; struct dg_obj *dgop = GED_DGO_NULL; @@ -2484,13 +2486,13 @@ intargc, char **argv) { -struct db_i*save_dbip = DBI_NULL; -struct mater *save_materp = MATER_NULL; -struct bu_vls vls; -struct bu_vls msg;/* use this to hold returned message */ -intcreate_new_db = 0; +struct ged *save_gedp; +struct db_i*save_dbip = DBI_NULL; +struct mater *save_materp = MATER_NULL; +struct bu_vls vls; +struct bu_vls msg; /* use this to hold returned message */ +int create_new_db = 0; - if ( argc <= 1 ) { /* Invoked without args, return name of current database */ @@ -2524,6 +2526,7 @@ return TCL_ERROR; } +save_gedp = gedp; save_dbip = dbip; dbip = DBI_NULL; save_materp = rt_material_head(); @@ -2539,6 +2542,7 @@ */ if (bu_file_exists(argv[1])) { /* need to reset things before returning */ + gedp = save_gedp; dbip = save_dbip; rt_new_material_head(save_materp); @@ -2592,6 +2596,7 @@ /* not initializing mged */ if (argc == 2) { /* need to reset this before returning */ + gedp = save_gedp; dbip = save_dbip; rt_new_material_head(save_materp); Tcl_AppendResult(interp, MORE_ARGS_STR, "Create new database (y|n)[n]? ", @@ -2603,6 +2608,7 @@ } if ( *argv[2] != 'y' && *argv[2] != 'Y' ) { + gedp = save_gedp; dbip = save_dbip; /* restore previous database */ rt_new_material_head(save_materp); bu_vls_free(&vls); @@ -2614,6 +2620,7 @@ /* File does not exist, and should be created */ if ((dbip = db_create(argv[1], db_version)) == DBI_NULL) { + gedp = save_gedp; dbip = save_dbip; /* restore previous database */ rt_new_material_head(save_materp); bu_vls_free(&vls); @@ -2647,6 +2654,7 @@ /* close out the old dbip */ if ( save_dbip ) { + struct ged *new_gedp; struct db_i *new_dbip; struct mater *new_materp; @@ -2654,6 +2662,7 @@ new_materp = rt_material_head(); /* activate the 'saved' values so we can cleanly close the previous db */ + gedp = save_gedp; dbip = save_dbip; rt_new_material_head(save_materp); @@ -2661,6 +2670,7 @@ f_closedb(clientData, interp, 1, NULL); /* restore to the new db just opened */ + gedp = new_gedp; dbip = new_dbip; rt_new_material_head(new_materp); } @@ -2687,6 +2697,9 @@ return TCL_ERROR; } +BU_GETSTRUCT(gedp, ged); +GED_INIT(gedp, wdbp); + /* increment use count for this db instance */ (void)db_clone_dbi(dbip, NULL); Modified: brlcad/trunk/src/mged/mged.h === --- brlcad/trunk/src/mged/mged.h2008-12-22 1
[brlcad-commits] SF.net SVN: brlcad:[33410] brlcad/trunk/src/libged/ged.c
Revision: 33410 http://brlcad.svn.sourceforge.net/brlcad/?rev=33410&view=rev Author: bob1961 Date: 2008-12-22 15:22:40 + (Mon, 22 Dec 2008) Log Message: --- Modified ged_open() to acquire a new RT material head. Modified Paths: -- brlcad/trunk/src/libged/ged.c Modified: brlcad/trunk/src/libged/ged.c === --- brlcad/trunk/src/libged/ged.c 2008-12-22 05:28:14 UTC (rev 33409) +++ brlcad/trunk/src/libged/ged.c 2008-12-22 15:22:40 UTC (rev 33410) @@ -56,12 +56,20 @@ { struct ged *gedp; struct rt_wdb *wdbp; +struct mater *save_materp = MATER_NULL; +save_materp = rt_material_head(); +rt_new_material_head(MATER_NULL); + if (strcmp(dbtype, "db") == 0) { struct db_i *dbip; - if ((dbip = ged_open_dbip(filename, existing_only)) == DBI_NULL) + if ((dbip = ged_open_dbip(filename, existing_only)) == DBI_NULL) { + /* Restore RT's material head */ + rt_new_material_head(save_materp); + return GED_NULL; + } RT_CK_DBI(dbip); @@ -71,8 +79,12 @@ } else { struct db_i *dbip; - if (ged_decode_dbip(filename, &dbip) != BRLCAD_OK) + if (ged_decode_dbip(filename, &dbip) != BRLCAD_OK) { + /* Restore RT's material head */ + rt_new_material_head(save_materp); + return GED_NULL; + } if (strcmp(dbtype, "disk" ) == 0) wdbp = wdb_dbopen(dbip, RT_WDB_TYPE_DB_DISK); @@ -83,6 +95,9 @@ else if (strcmp(dbtype, "inmem_append" ) == 0) wdbp = wdb_dbopen(dbip, RT_WDB_TYPE_DB_INMEM_APPEND_ONLY); else { + /* Restore RT's material head */ + rt_new_material_head(save_materp); + bu_log("wdb_open %s target type not recognized", dbtype); return GED_NULL; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- ___ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits