11 typedef typename ::dyno::TAlignedBox3D<Real>
AABB;
12 typedef unsigned long long int PKey;
14 template<
typename TDataType>
19 typedef typename TDataType::Real
Real;
20 typedef typename TDataType::Coord
Coord;
21 typedef typename TDataType::Matrix
Matrix;
31 DEF_ENUM(EStructure, AccelerationStructure, EStructure::BVH,
"Acceleration structure");
33 DEF_VAR(
Real, GridSizeLimit, 0.005,
"Limit the smallest grid size");
#define DECLARE_TCLASS(name, T1)
#define IMPLEMENT_TCLASS(name, T1)
~CollisionDetectionBroadPhase() override
LinearBVH< TDataType > bvh
DEF_ARRAY_IN(AABB, Source, DeviceType::GPU, "")
DEF_VAR(Real, GridSizeLimit, 0.005, "Limit the smallest grid size")
CollisionDetectionBroadPhase()
DEF_ARRAY_IN(AABB, Target, DeviceType::GPU, "")
DEF_ENUM(EStructure, AccelerationStructure, EStructure::BVH, "Acceleration structure")
DECLARE_ENUM(EStructure, BVH=0, Octree=1)
void doCollisionWithSparseOctree()
DEF_ARRAYLIST_OUT(int, ContactList, DeviceType::GPU, "Contact pairs")
Reduction< Real > m_reduce_real
DEF_VAR(bool, SelfCollision, false, "")
DArray< uint > mNewCounter
Reduction< Coord > m_reduce_coord
void doCollisionWithLinearBVH()
This is an implementation of AdditiveCCD based on peridyno.
Array< T, DeviceType::GPU > DArray
::dyno::TAlignedBox3D< Real > AABB
unsigned long long int PKey