Revision: 56301
http://sourceforge.net/p/brlcad/code/56301
Author: brlcad
Date: 2013-07-29 00:22:31 +0000 (Mon, 29 Jul 2013)
Log Message:
-----------
eliminate the manual recursion dead code since rt_ct_optim() is better reuse
and the implications of the dead one are not clear.
Modified Paths:
--------------
brlcad/trunk/src/librt/cut.c
Modified: brlcad/trunk/src/librt/cut.c
===================================================================
--- brlcad/trunk/src/librt/cut.c 2013-07-29 00:14:44 UTC (rev 56300)
+++ brlcad/trunk/src/librt/cut.c 2013-07-29 00:22:31 UTC (rev 56301)
@@ -319,11 +319,9 @@
nu_ncells = rtip->rti_nugrid_dimlimit;
nu_sol_per_cell = (fromp->bn_len + nu_ncells - 1) / nu_ncells;
nu_max_ncells = 2*nu_ncells + 8;
-#if 0
- pseudo_depth = depth+(int)log((double)(nu_ncells*nu_ncells*nu_ncells));
-#else
+
+ /* pseudo_depth = depth+(int)log((double)(nu_ncells*nu_ncells*nu_ncells));
*/
pseudo_depth = depth;
-#endif
if (RT_G_DEBUG&DEBUG_CUT)
bu_log(
@@ -648,26 +646,7 @@
sizeof(struct soltab *));
if (rtip->rti_nugrid_dimlimit > 0) {
-#if 1
rt_ct_optim(rtip, cutp, pseudo_depth);
-#else
- /* Recurse, but only if we're cutting down on
- the cellsize. */
- if (cutp->bn.bn_len > 5 &&
- cutp->bn.bn_len < fromp->bn_len>>1) {
-
- /* Make a little NUGRID node here
- to clean things up */
- union cutter temp;
-
- temp = *cutp; /* union copy */
- cutp->cut_type = CUT_NUGRIDNODE;
- /* recursive call! */
- rt_nugrid_cut(&cutp->nugn,
- &temp.bn, rtip, 0,
- depth+1);
- }
-#endif
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits