Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Physics3D/boundstree/boundsTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,14 @@ void forEachColissionWithRecursive(const TreeTrunk& trunk, int trunkSize, Bounda
}
}
}
//before = 0m17.620s;
//after = 0m15.310s;

// expects a function of the form void(Boundable*, Boundable*)
// Calls the given function for each pair of leaf nodes from the two trunks
template<typename Boundable, typename SIMDHelper, typename Func>
void forEachColissionBetweenRecursive(const TreeTrunk& trunkA, int trunkASize, const TreeTrunk& trunkB, int trunkBSize, const Func& func) {
OverlapMatrix overlapBetween = SIMDHelper::computeBoundsOverlapMatrix(trunkA, trunkASize, trunkB, trunkBSize);
OverlapMatrix overlapBetween = SIMDHelper::computeBoundsOverlapMatrixAVX(trunkA, trunkASize, trunkB, trunkBSize);

for(int a = 0; a < trunkASize; a++) {
const TreeNodeRef& aNode = trunkA.subNodes[a];
Expand Down
1 change: 1 addition & 0 deletions Physics3D/geometry/triangleMeshCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "triangleMesh.h"
#include <immintrin.h>
#include <stdint.h>

namespace P3D {
#ifdef _MSC_VER
Expand Down