Revision: 47281
          http://brlcad.svn.sourceforge.net/brlcad/?rev=47281&view=rev
Author:   abhi2011
Date:     2011-10-17 23:43:00 +0000 (Mon, 17 Oct 2011)
Log Message:
-----------
Debugging continues, apparently the points in rigid body A which is calculated 
from the point for B and the normal pointing from A to B, is not getting 
calculated

Modified Paths:
--------------
    brlcad/trunk/src/libged/simulate/simcollisionalgo.cpp

Modified: brlcad/trunk/src/libged/simulate/simcollisionalgo.cpp
===================================================================
--- brlcad/trunk/src/libged/simulate/simcollisionalgo.cpp       2011-10-17 
20:29:00 UTC (rev 47280)
+++ brlcad/trunk/src/libged/simulate/simcollisionalgo.cpp       2011-10-17 
23:43:00 UTC (rev 47281)
@@ -181,9 +181,9 @@
                                        rt_mf->rbB->rb_namep,
                                        rbB->rb_namep);
 
-                  //Find the manifold in rbB's list which connects rbB and rbA
-                  if( bu_strcmp(rt_mf->rbA->rb_namep, rbA->rb_namep) == 0 &&
-                                  bu_strcmp(rt_mf->rbB->rb_namep, 
rbB->rb_namep) == 0 ){
+                   //Find the manifold in rbB's list which connects rbB and rbA
+                   if( BU_STR_EQUAL(rt_mf->rbA->rb_namep, rbA->rb_namep) &&
+                               BU_STR_EQUAL(rt_mf->rbB->rb_namep, 
rbB->rb_namep) ){
 
                           // Now add the RT contact pairs
                           for (i=0; i<rt_mf->num_contacts; i++){
@@ -211,13 +211,14 @@
                   }//end- if( bu_strcmp...
 
           }//end- for (rt_mf = rbB->head_rt_manifold...
-
-    } //end-if
 #endif //DEBUG_MF
 
+    } //end- if (rbA != NULL && rbB...
 
 
 
+
+
     //------------------------------------------------------
 
 #ifdef USE_PERSISTENT_CONTACTS

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to