Revision: 47266 http://brlcad.svn.sourceforge.net/brlcad/?rev=47266&view=rev Author: abhi2011 Date: 2011-10-15 20:27:56 +0000 (Sat, 15 Oct 2011) Log Message: ----------- Floating point issues, had to increase the limit of a loop by TOLerance to ensure rays are shot from edge to edge in overlap volume, strangely NEAR_EQUAL() doesnt seem to work
Modified Paths: -------------- brlcad/trunk/src/libged/simulate/simrt.c Modified: brlcad/trunk/src/libged/simulate/simrt.c =================================================================== --- brlcad/trunk/src/libged/simulate/simrt.c 2011-10-15 20:05:38 UTC (rev 47265) +++ brlcad/trunk/src/libged/simulate/simrt.c 2011-10-15 20:27:56 UTC (rev 47266) @@ -548,8 +548,8 @@ startz = overlap_min[Z] + diff[Z]*0.5; /* The overlap region is too thin for generating 4 contacts points, 2 will do */ - for(z=startz; z<=overlap_max[Z]; z += TOL){ - for(y=starty; y<=overlap_max[Y]; y += TOL){ + for(z=startz; z<(overlap_max[Z]+TOL); z += TOL){ + for(y=starty; y<(overlap_max[Y]+TOL); y += TOL){ /* Shooting towards lower x, so start from max x outside of overlap box */ VSET(r_pt, overlap_min[X], y, z); @@ -570,6 +570,9 @@ cleanup_lists(); } + + bu_log("Last y ray fired from z=%f, y=%f , overlap_max[Z]=%f, overlap_max[Y]=%f", + z, y, overlap_max[Z], overlap_max[Y]); } } 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