4#include "ParticleSystem/ParticleSystem.h"
17 template<
typename TDataType>
22 typedef typename TDataType::Real
Real;
24 typedef typename TDataType::Coord
Coord;
25 typedef typename TDataType::Matrix
Matrix;
26 typedef typename ::dyno::TBond<TDataType>
Bond;
46 void loadSDF(std::string filename,
bool inverted);
56 DEF_VAR(
bool, AlphaComputed,
true,
"alphaComputed");
75 DEF_VAR(
bool, NeighborSearchingAdjacent,
true,
"");
#define DECLARE_TCLASS(name, T1)
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
bool rotate(Quat< Real > angle)
::dyno::TBond< TDataType > Bond
DEF_ARRAY_STATE(Attribute, Attribute, DeviceType::GPU, "")
void setEnergyModel(NeoHookeanModel< Real > model)
DEF_ARRAY_STATE(Coord, RestPosition, DeviceType::GPU, "")
~HyperelasticBody() override
virtual void updateRestShape()
void loadSDF(std::string filename, bool inverted)
void resetStates() override
DEF_ARRAY_STATE(Matrix, VertexRotation, DeviceType::GPU, "")
DEF_VAR(FilePath, FileName, std::string(""), "")
TopologyModule::Tetrahedron Tetrahedron
DEF_ARRAYLIST_STATE(Real, VolumePair, DeviceType::GPU, "")
DEF_ARRAYLIST_STATE(Bond, Bonds, DeviceType::GPU, "")
DEF_ARRAY_STATE(Tetrahedron, Tets, DeviceType::GPU, "")
DEF_VAR(Vec3f, Scale, Vec3f(1.0f), "Node scale")
DEF_VAR(bool, NeighborSearchingAdjacent, true, "")
void setEnergyModel(StVKModel< Real > model)
DEF_VAR(Vec3f, Rotation, 0, "Node rotation")
DEF_VAR(bool, AlphaComputed, true, "alphaComputed")
DEF_VAR(EnergyModels< Real >, EnergyModel, EnergyModels< Real >(), "")
virtual void updateVolume()
void setEnergyModel(LinearModel< Real > model)
DEF_VAR(Vec3f, Location, 0, "Node location")
DEF_ARRAY_STATE(Real, Volume, DeviceType::GPU, "")
DEF_VAR(EnergyType, EnergyType, NeoHooekean, "")
DEF_VAR(Real, Horizon, 0.01, "Horizon")
void setEnergyModel(XuModel< Real > model)
VectorND< PointType, 4 > Tetrahedron
This is an implementation of AdditiveCCD based on peridyno.