Revision: 47572 http://brlcad.svn.sourceforge.net/brlcad/?rev=47572&view=rev Author: abhi2011 Date: 2011-11-19 06:58:52 +0000 (Sat, 19 Nov 2011) Log Message: ----------- Trying to convert the air regions to hit regions, so they are inserted in the hit regions list.
Modified Paths: -------------- brlcad/trunk/src/libged/simulate/simrt.c brlcad/trunk/src/libged/simulate/simulate.c Modified: brlcad/trunk/src/libged/simulate/simrt.c =================================================================== --- brlcad/trunk/src/libged/simulate/simrt.c 2011-11-19 05:05:06 UTC (rev 47571) +++ brlcad/trunk/src/libged/simulate/simrt.c 2011-11-19 06:58:52 UTC (rev 47572) @@ -161,14 +161,17 @@ /* print the name of the region we hit as well as the name of * the primitives encountered on entry and exit. */ - bu_log("\n--- Hit region %s (in %s, out %s), RegionID=%d, AIRCode=%d, MaterialCode=%d\n", - pp->pt_regionp->reg_name, - pp->pt_inseg->seg_stp->st_name, - pp->pt_outseg->seg_stp->st_name, - pp->pt_regionp->reg_regionid, - pp->pt_regionp->reg_aircode, - pp->pt_regionp->reg_gmater); + if(pp->pt_regionp->reg_aircode != 0){ + bu_log("\n--- Hit region %s (in %s, out %s), RegionID=%d, AIRCode=%d, MaterialCode=%d\n", + pp->pt_regionp->reg_name, + pp->pt_inseg->seg_stp->st_name, + pp->pt_outseg->seg_stp->st_name, + pp->pt_regionp->reg_regionid, + pp->pt_regionp->reg_aircode, + pp->pt_regionp->reg_gmater); + } + /* Insert partition */ hit_list[i].pp = pp; Modified: brlcad/trunk/src/libged/simulate/simulate.c =================================================================== --- brlcad/trunk/src/libged/simulate/simulate.c 2011-11-19 05:05:06 UTC (rev 47571) +++ brlcad/trunk/src/libged/simulate/simulate.c 2011-11-19 06:58:52 UTC (rev 47572) @@ -373,6 +373,7 @@ struct rigid_body *rb; /* Add all sim objects to raytrace instance */ + sim_params->rtip->useair = 1; /* Add all the sim objects to the rt_i */ for (rb = sim_params->head_node; rb != NULL; rb = rb->next) { 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. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits