10 template <
typename TDataType>
class DistanceField3D;
11 template <
typename TDataType>
class BoundaryConstraint;
13 template<
typename TDataType>
18 typedef typename TDataType::Real
Real;
19 typedef typename TDataType::Coord
Coord;
44 std::vector<std::shared_ptr<BoundaryConstraint<TDataType>>>
m_obstacles;
46 std::vector<std::shared_ptr<RigidBody<TDataType>>>
m_rigids;
#define DECLARE_TCLASS(name, T1)
This class represents the base class for more advanced particle-based nodes.
void loadShpere(Coord center, Real r, Real distance=0.005f, bool bOutBoundary=false, bool bVisible=false)
void loadSDF(std::string filename, bool bOutBoundary=false)
std::vector< std::shared_ptr< BoundaryConstraint< TDataType > > > m_obstacles
std::vector< std::shared_ptr< RigidBody< TDataType > > > m_rigids
void updateStates() override
std::vector< std::shared_ptr< ParticleSystem< TDataType > > > m_particleSystems
DEF_VAR(Real, TangentialFriction, 0.0, "Tangential friction")
~StaticBoundary() override
DEF_NODE_PORTS(RigidBody< TDataType >, RigidBody, "A rigid body")
DEF_VAR(Real, NormalFriction, 1.0, "Normal friction")
DEF_VAR(FilePath, FileName, "", "")
DEF_NODE_PORTS(ParticleSystem< TDataType >, ParticleSystem, "Particle Systems")
std::shared_ptr< Node > loadCube(Coord lo, Coord hi, Real distance=0.005f, bool bOutBoundary=false)
DEF_VAR(Vec3f, CubeVertex_hi, Vec3f(1.0f), "Cube")
DEF_VAR(Vec3f, CubeVertex_lo, Vec3f(0.0f), "Cube")
This is an implementation of AdditiveCCD based on peridyno.