4#include "Topology/TriangleSet.h"
19 template<
typename TDataType>
24 typedef typename TDataType::Real
Real;
25 typedef typename TDataType::Coord
Coord;
47 DEF_VAR(
Real, InterationRadius, 0.03,
"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 > verIntersectedIndex
TopologyModule::Triangle Triangle
TopologyModule::Edge Edge
std::shared_ptr< Camera > camera
DEF_ARRAY_IN(Coord, Position, DeviceType::GPU, "")
virtual ~DragVertexInteraction()
DArray< Coord > intersectionCenter
DArray< int > intersected_vertex
void calcVertexInteractClick()
DEF_INSTANCE_IN(TriangleSet< TDataType >, InitialTriangleSet, "")
DArray< Attribute > restoreAttribute
DEF_VAR(Real, InterationRadius, 0.03, "The radius of interaction")
void calcVertexInteractDrag()
DEF_ARRAY_IN(Coord, Velocity, DeviceType::GPU, "")
void onEvent(PMouseEvent event) override
DEF_VAR_IN(Real, TimeStep, "Time step")
DEF_ARRAY_IN(Attribute, Attribute, DeviceType::GPU, "Particle attribute")
VectorND< PointType, 2 > Edge
Vector< PointType, 3 > Triangle
This is an implementation of AdditiveCCD based on peridyno.
Array< T, DeviceType::GPU > DArray