PeriDyno 1.0.0
Loading...
Searching...
No Matches
CollistionDetectionBoundingBox.h
Go to the documentation of this file.
1#pragma once
2#include "CollisionData.h"
3
5
6#include "Topology/DiscreteElements.h"
7
8namespace dyno {
9 template<typename TDataType>
11 {
13
14 public:
15 typedef typename TDataType::Real Real;
16 typedef typename TDataType::Coord Coord;
17 typedef typename ::dyno::TAlignedBox3D<Real> AABB;
18
21
22 public:
23 DEF_VAR(Coord, UpperBound, Coord(1000), "An upper bound for the bounding box");
24
25 DEF_VAR(Coord, LowerBound, Coord(-100, 0, -100), "A lower bound for the bounding box");
26
27 public:
29
30 DEF_ARRAY_OUT(TContactPair<Real>, Contacts, DeviceType::GPU, "");
31
32 protected:
33 void compute() override;
34
35 private:
37
40 };
41
43}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
DEF_ARRAY_OUT(TContactPair< Real >, Contacts, DeviceType::GPU, "")
DEF_VAR(Coord, UpperBound, Coord(1000), "An upper bound for the bounding box")
DEF_VAR(Coord, LowerBound, Coord(-100, 0, -100), "A lower bound for the bounding box")
DEF_INSTANCE_IN(DiscreteElements< TDataType >, DiscreteElements, "")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
Array< T, DeviceType::GPU > DArray
Definition Array.inl:89