@woosh/meep-engine 2.119.129 → 2.119.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ebvh_optimize_treelet.d.ts","sourceRoot":"","sources":["../../../../../src/core/bvh2/bvh3/ebvh_optimize_treelet.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ebvh_optimize_treelet.d.ts","sourceRoot":"","sources":["../../../../../src/core/bvh2/bvh3/ebvh_optimize_treelet.js"],"names":[],"mappings":"AAgNA;;;;;;;GAOG;AACH,2CAJW,GAAG,QACH,MAAM,iBACN,MAAM,QA0IhB"}
|
|
@@ -85,13 +85,9 @@ function optimize_treelet(bvh, root, leaves, leaf_count) {
|
|
|
85
85
|
|
|
86
86
|
// Initialize costs of individual leaves
|
|
87
87
|
for (let i = 0; i < leaf_count; i++) {
|
|
88
|
-
// TODO implement a full cost heuristic
|
|
89
88
|
const leaf = leaves[i];
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
const triangle_count = bvh.node_get_height(leaf);
|
|
93
|
-
|
|
94
|
-
scratch_cost[1 << i] = SAH_COST_TRIANGLE * bvh.node_get_surface_area(leaf) * triangle_count;
|
|
90
|
+
scratch_cost[1 << i] = SAH_COST_TRIANGLE * bvh.node_get_surface_area(leaf) ;
|
|
95
91
|
}
|
|
96
92
|
|
|
97
93
|
// Optimize every subset of leaves
|