Text archives Help
- From: "Thiago Ize" <
>
- To:
- Subject: [Manta] r2385 - trunk/Model/Groups
- Date: Sat, 14 Mar 2009 18:19:58 -0600 (MDT)
Author: thiago
Date: Sat Mar 14 18:19:56 2009
New Revision: 2385
Modified:
trunk/Model/Groups/RecursiveGrid.cc
Log:
M Groups/RecursiveGrid.cc
Fixed bug that was causing the multilevel grid to not use the right
number of grid cels for 2 or more level grids. Performance is now
better and more predictable.
Modified: trunk/Model/Groups/RecursiveGrid.cc
==============================================================================
--- trunk/Model/Groups/RecursiveGrid.cc (original)
+++ trunk/Model/Groups/RecursiveGrid.cc Sat Mar 14 18:19:56 2009
@@ -344,14 +344,14 @@
totalObjects = objs.size();
float exponent =
1.0 / (initial_exp_d-depth*2);
- //7.0/27; //optimal for single level grids
+ //7.0/27; //optimal for single level grids (use scale of 350).
//4/3.0 / 3.0; //optimal for single level grid of long skinny triangles.
//Found 8^(1/3) to work well for this codebase. It's possible this
//could change with updated code.
- float scale = 2;
+ float scale = 8;
- double m = scale * powf(totalObjects, exponent);
+ double m = powf( scale * totalObjects, exponent);
//note: m^3 = M = total cells for that specfic grid level
bool build_N_Grid = false;
buildgrid:
- [Manta] r2385 - trunk/Model/Groups, Thiago Ize, 03/14/2009
Archive powered by MHonArc 2.6.16.