22#include "Topology/TriangleSet.h"
30 template<
typename TDataType>
37 typedef typename TDataType::Real
Real;
38 typedef typename TDataType::Coord
Coord;
59 DEF_ARRAY_IN(
int, ParticleMeshID, DeviceType::GPU,
"triangle neighbors");
#define DECLARE_TCLASS(name, T1)
#define IMPLEMENT_TCLASS(name, T1)
DArray< bool > mNormalForceFlag
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "")
void constrain() override
DEF_VAR(Real, Strength, 10.0f, "")
DEF_ARRAY_IN(int, ParticleMeshID, DeviceType::GPU, "triangle neighbors")
DEF_ARRAYLIST_IN(int, TriangleNeighborIds, DeviceType::GPU, "triangle neighbors")
DEF_ARRAY_OUT(Coord, NormalForce, DeviceType::GPU, "")
DEF_ARRAY_IN(Coord, ParticleNormal, DeviceType::GPU, "")
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
DEF_VAR_IN(Real, TimeStep, "Time step size")
This is an implementation of AdditiveCCD based on peridyno.
Array< T, DeviceType::GPU > DArray