Revision: 41215
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41215&view=rev
Author:   brlcad
Date:     2010-11-02 10:47:12 +0000 (Tue, 02 Nov 2010)

Log Message:
-----------
report if this is an NMG with more than one region or shell when going to BoT

Modified Paths:
--------------
    brlcad/trunk/src/libged/facetize.c

Modified: brlcad/trunk/src/libged/facetize.c
===================================================================
--- brlcad/trunk/src/libged/facetize.c  2010-11-02 10:39:35 UTC (rev 41214)
+++ brlcad/trunk/src/libged/facetize.c  2010-11-02 10:47:12 UTC (rev 41215)
@@ -255,8 +255,14 @@
        bu_vls_printf(&gedp->ged_result_str, "facetize:  converting to BOT 
format\n");
 
        /* WTF, FIXME: this is only dumping the first shell of the first region 
*/
+
        r = BU_LIST_FIRST(nmgregion, &nmg_model->r_hd);
+       if (r && BU_LIST_NEXT(nmgregion, &r->l) !=  (struct nmgregion 
*)&m->r_hd)
+           bu_vls_printf(&gedp->ged_result_str, "WARNING: model has more than 
one region, only facetizing the first\n");
+
        s = BU_LIST_FIRST(shell, &r->s_hd);
+       if (s && BU_LIST_NEXT(shell, &s->l) != (struct shell *)&r->s_hd)
+           bu_vls_printf(&gedp->ged_result_str, "WARNING: model has more than 
one shell, only facetizing the first\n");
 
        if (!BU_SETJUMP) {
            /* try */


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

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to