-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REMIX-3744] Small optimization to findSimilarInstances that improves…
… the exact transform match case. This separates the check for exact transform from the distance check, and only runs the exact transform check on instances that share the same grid cell (rather than the nearest 2x2x2 patch of grid cells). The change also fixes the logic slightly - previously, an instance with the same position but a different orientation or scale would be used as soon as it was found - even if a later instance may have a perfect match.
- Loading branch information
1 parent
b4ca5f6
commit fd7a965
Showing
2 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters