PeriDyno 1.0.0
Loading...
Searching...
No Matches
GhostParticles.h
Go to the documentation of this file.
1#pragma once
2#include "ParticleSystem.h"
4
5namespace dyno
6{
7 template<typename TDataType>
8 class GhostParticles : public ParticleSystem<TDataType>
9 {
11 public:
12 typedef typename TDataType::Real Real;
13 typedef typename TDataType::Coord Coord;
14
16 ~GhostParticles() override;
17
18 public:
19 DEF_ARRAY_STATE(Coord, Normal, DeviceType::GPU, "Ghost particle normals");
20
21 DEF_ARRAY_STATE(Attribute, Attribute, DeviceType::GPU, "Particle attributes");
22
23 protected:
24 void resetStates() override;
25 };
26
28}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
#define IMPLEMENT_TCLASS(name, T1)
Definition Object.h:103
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
Definition Attribute.h:26
TDataType::Real Real
void resetStates() override
TDataType::Coord Coord
DEF_ARRAY_STATE(Attribute, Attribute, DeviceType::GPU, "Particle attributes")
DEF_ARRAY_STATE(Coord, Normal, DeviceType::GPU, "Ghost particle normals")
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25