GPU Sweep and Prune public API.
More...
#include <SweepAndPrune.h>
GPU Sweep and Prune public API.
◆ SweepAndPrune() [1/2]
pbat::gpu::geometry::SweepAndPrune::SweepAndPrune |
( |
std::size_t | nPrimitives, |
|
|
std::size_t | nOverlaps ) |
Construct a new Sweep And Prune object with space allocated for nPrimitives and at most nOverlaps.
- Parameters
-
nPrimitives | Number of primitives |
nOverlaps | Maximum number of overlaps |
◆ SweepAndPrune() [2/2]
pbat::gpu::geometry::SweepAndPrune::SweepAndPrune |
( |
SweepAndPrune && | other | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
◆ operator=()
Move assignment.
- Parameters
-
- Returns
- Reference to this
◆ SortAndSweep() [1/2]
Detect overlaps between the AABBs.
- Parameters
-
- Returns
2 x |# overlaps|
matrix of overlap pairs in aabbs
◆ SortAndSweep() [2/2]
Detect overlaps between the AABBs of different sets.
- Parameters
-
set | |# aabbs| map of indices of aabbs to their corresponding set, i.e. set[i] = j means that aabb i belongs to set j . Must be a 1D Buffer of type GpuIndex of the same size as aabbs. |
aabbs | The AABBs over objects |
- Returns
2x|# overlaps|
matrix of overlap pairs between boxes of different sets
The documentation for this class was generated from the following files:
- C:/git/PhysicsBasedAnimationToolkit/source/pbat/gpu/geometry/SweepAndPrune.h
- C:/git/PhysicsBasedAnimationToolkit/source/pbat/gpu/geometry/SweepAndPrune.cu