Revision: 54467
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54467&view=rev
Author:   bob1961
Date:     2013-02-22 11:32:54 +0000 (Fri, 22 Feb 2013)
Log Message:
-----------
Update the "get" and "adjust" commands for extrude to accept the use of 
"sk_name" in place of the "S" attribute name.

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/extrude/extrude.c

Modified: brlcad/trunk/src/librt/primitives/extrude/extrude.c
===================================================================
--- brlcad/trunk/src/librt/primitives/extrude/extrude.c 2013-02-22 11:28:42 UTC 
(rev 54466)
+++ brlcad/trunk/src/librt/primitives/extrude/extrude.c 2013-02-22 11:32:54 UTC 
(rev 54467)
@@ -2713,7 +2713,7 @@
        bu_vls_printf(logstr, "%.25g %.25g %.25g", V3ARGS(extr->u_vec));
     else if (*attr == 'B')
        bu_vls_printf(logstr, "%.25g %.25g %.25g", V3ARGS(extr->v_vec));
-    else if (*attr == 'S')
+    else if (*attr == 'S' || BU_STR_EQUAL(attr, "sk_name"))
        bu_vls_printf(logstr, "%s", extr->sketch_name);
     else {
        bu_vls_strcat(logstr, "ERROR: unrecognized attribute, must be V, H, A, 
B, or S!");
@@ -2775,7 +2775,7 @@
            VSCALE(extr->u_vec, extr->u_vec, len);
        } else if (*argv[0] =='K') {
            extr->keypoint = atoi(argv[1]);
-       } else if (*argv[0] == 'S') {
+       } else if (*argv[0] == 'S' || BU_STR_EQUAL(argv[0], "sk_name")) {
            if (extr->sketch_name)
                bu_free((char *)extr->sketch_name, "rt_extrude_tcladjust: 
sketch_name");
            extr->sketch_name = bu_strdup(argv[1]);

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


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to