PeriDyno 1.0.0
Loading...
Searching...
No Matches
ParticleSkinning.h
Go to the documentation of this file.
1
16
17#include "ParticleSystem/ParticleSystem.h"
18
19#include "Topology/LevelSet.h"
20#include "Topology/TriangleSet.h"
21
22namespace dyno
23{
24 template<typename TDataType>
25 class ParticleSkinning : public Node
26 {
28 public:
29 typedef typename TDataType::Real Real;
30 typedef typename TDataType::Coord Coord;
31
33 ~ParticleSkinning() override {};
34
35 public:
37
38 DEF_ARRAY_STATE(Coord, Points, DeviceType::GPU, "Point positions");
39
40 DEF_INSTANCE_STATE(LevelSet<TDataType>, LevelSet, "A 3D signed distance field");
41
43
44 DEF_ARRAY_STATE(Coord, GridPoistion, DeviceType::GPU, "Grid positions");
45
46 DEF_VAR_STATE(Real, GridSpacing, 0.01, "Grid spacing");
47
48 protected:
49 void resetStates() override;
50
51 void preUpdateStates() override;
52
53 private:
55
57 };
58
59
60}
#define DECLARE_TCLASS(name, T1)
Definition Object.h:87
DEF_INSTANCE_STATE(LevelSet< TDataType >, LevelSet, "A 3D signed distance field")
DEF_NODE_PORT(ParticleSystem< TDataType >, ParticleSystem, "Initial Fluid Particles")
void preUpdateStates() override
void resetStates() override
DEF_ARRAY_STATE(Coord, Points, DeviceType::GPU, "Point positions")
DEF_VAR_STATE(Real, GridSpacing, 0.01, "Grid spacing")
DEF_INSTANCE_STATE(TriangleSet< TDataType >, TriangleSet, "An iso surface")
DEF_ARRAY_STATE(Coord, GridPoistion, DeviceType::GPU, "Grid positions")
This class represents the base class for more advanced particle-based nodes.
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25