Revision: 41335
http://brlcad.svn.sourceforge.net/brlcad/?rev=41335&view=rev
Author: brlcad
Date: 2010-11-12 21:36:48 +0000 (Fri, 12 Nov 2010)
Log Message:
-----------
add a new ged_count_tops() routine that counts the number of visibile
(top-level) objects.
Modified Paths:
--------------
brlcad/trunk/include/ged.h
brlcad/trunk/src/libged/rt.c
Modified: brlcad/trunk/include/ged.h
===================================================================
--- brlcad/trunk/include/ged.h 2010-11-12 21:22:01 UTC (rev 41334)
+++ brlcad/trunk/include/ged.h 2010-11-12 21:36:48 UTC (rev 41335)
@@ -616,6 +616,7 @@
(struct ged *gedp,
char **start,
char **end));
+GED_EXPORT BU_EXTERN(size_t ged_count_tops, (struct ged *gedp));
/* FIXME: wdb routines do not belong in libged. need to be
Modified: brlcad/trunk/src/libged/rt.c
===================================================================
--- brlcad/trunk/src/libged/rt.c 2010-11-12 21:22:01 UTC (rev 41334)
+++ brlcad/trunk/src/libged/rt.c 2010-11-12 21:36:48 UTC (rev 41335)
@@ -484,6 +484,21 @@
/**
+ *
+ */
+size_t
+ged_count_tops(struct ged *gedp)
+{
+ struct ged_display_list *gdlp = NULL;
+ size_t visibleCount = 0;
+ for (BU_LIST_FOR(gdlp, ged_display_list, &gedp->ged_gdp->gd_headDisplay)) {
+ visibleCount++;
+ }
+ return visibleCount;
+}
+
+
+/**
* G E D _ B U I L D _ T O P S
*
* Build a command line vector of the tops of all objects in view.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits