Skip to content

Commit

Permalink
Rename maxLeafNodes to maxLeafTris
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Dec 21, 2018
1 parent 25fd595 commit 9332588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MeshBVH.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class MeshBVH extends MeshBVHNode {

strategy: CENTER,
maxDepth: Infinity,
maxLeafNodes: 10
maxLeafTris: 10

}, options );
options.strategy = Math.max( 0, Math.min( 2, options.strategy ) );
Expand Down Expand Up @@ -44,8 +44,8 @@ export default class MeshBVH extends MeshBVHNode {
// recording the offset and count of its triangles and writing them into the reordered geometry index.
const splitNode = ( node, offset, count, depth = 0 ) => {

// early out wif we've met our capacity
if ( count <= options.maxLeafNodes ) {
// early out if we've met our capacity
if ( count <= options.maxLeafTris ) {

ctx.writeReorderedIndices( offset, count, indices );
node.offset = offset;
Expand Down

0 comments on commit 9332588

Please sign in to comment.