Revision: 54602
http://brlcad.svn.sourceforge.net/brlcad/?rev=54602&view=rev
Author: bob1961
Date: 2013-03-11 12:08:06 +0000 (Mon, 11 Mar 2013)
Log Message:
-----------
Update ged_how to accomodate objects drawn as hidden line.
Modified Paths:
--------------
brlcad/trunk/src/libged/ged_private.h
brlcad/trunk/src/libged/how.c
Modified: brlcad/trunk/src/libged/ged_private.h
===================================================================
--- brlcad/trunk/src/libged/ged_private.h 2013-03-10 11:57:45 UTC (rev
54601)
+++ brlcad/trunk/src/libged/ged_private.h 2013-03-11 12:08:06 UTC (rev
54602)
@@ -51,6 +51,7 @@
#define _GED_SHADED_MODE_BOTS 1
#define _GED_SHADED_MODE_ALL 2
#define _GED_BOOL_EVAL 3
+#define _GED_HIDDEN_LINE 4
#define _GED_TREE_AFLAG 0x01
#define _GED_TREE_CFLAG 0x02
Modified: brlcad/trunk/src/libged/how.c
===================================================================
--- brlcad/trunk/src/libged/how.c 2013-03-10 11:57:45 UTC (rev 54601)
+++ brlcad/trunk/src/libged/how.c 2013-03-11 12:08:06 UTC (rev 54602)
@@ -101,10 +101,17 @@
/* found a match */
- if (both)
- bu_vls_printf(gedp->ged_result_str, "%d %g", sp->s_dmode,
sp->s_transparency);
- else
- bu_vls_printf(gedp->ged_result_str, "%d", sp->s_dmode);
+ if (sp->s_hiddenLine) {
+ if (both)
+ bu_vls_printf(gedp->ged_result_str, "%d 1",
_GED_HIDDEN_LINE);
+ else
+ bu_vls_printf(gedp->ged_result_str, "%d", _GED_HIDDEN_LINE);
+ } else {
+ if (both)
+ bu_vls_printf(gedp->ged_result_str, "%d %g", sp->s_dmode,
sp->s_transparency);
+ else
+ bu_vls_printf(gedp->ged_result_str, "%d", sp->s_dmode);
+ }
goto good;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits