4#include "Topology/TriangleSet.h"
20 template<
typename TDataType>
25 typedef typename TDataType::Real
Real;
26 typedef typename TDataType::Coord
Coord;
48 DEF_VAR(
Real, InterationRadius, 0.005,
"The radius of interaction");
#define DECLARE_TCLASS(name, T1)
#define IMPLEMENT_TCLASS(name, T1)
particle attribute 0x00000000: [31-30]material; [29]motion; [28]Dynamic; [27-8]undefined yet,...
DArray< int > intersected_triangles
TopologyModule::Edge Edge
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
void onEvent(PMouseEvent event) override
DArray< Coord > intersectionCenter
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle attribute")
TopologyModule::Triangle Triangle
DArray< int > triIntersectedIndex
DEF_INSTANCE_IN(TriangleSet< TDataType >, InitialTriangleSet, "")
std::shared_ptr< Camera > camera
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
DEF_VAR(Real, InterationRadius, 0.005, "The radius of interaction")
DEF_VAR_IN(Real, TimeStep, "Time step")
void calcSurfaceInteractClick()
virtual ~DragSurfaceInteraction()
int intersectionCenterIndex
DArray< Attribute > restoreAttribute
void calcSurfaceInteractDrag()
VectorND< PointType, 2 > Edge
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Array< T, DeviceType::GPU > DArray