11 template<
typename TDataType>
16 typedef typename TDataType::Real
Real;
17 typedef typename TDataType::Coord
Coord;
18 typedef typename ::dyno::TBond<TDataType>
Bond;
#define DECLARE_TCLASS(name, T1)
DEF_ARRAY_STATE(Coord, OldPosition, DeviceType::GPU, "")
::dyno::TBond< TDataType > Bond
DEF_INSTANCE_IN(TriangleSet< TDataType >, TriangleSet, "Input")
DEF_VAR(Real, Horizon, 0.01, "Horizon")
DEF_ARRAY_STATE(Coord, RestPosition, DeviceType::GPU, "")
void resetStates() override
void preUpdateStates() override
DEF_ARRAYLIST_STATE(Bond, Bonds, DeviceType::GPU, "Storing neighbors")
DEF_VAR_STATE(Real, Horizon, Real(1), "A state field representing horizon")
This is an implementation of AdditiveCCD based on peridyno.