PeriDyno 1.0.0
Loading...
Searching...
No Matches
ContactsToEdgeSet.h
Go to the documentation of this file.
1#pragma once
3
5#include "Topology/EdgeSet.h"
6
7namespace dyno
8{
9 template<typename TDataType>
11 {
13 public:
14 typedef typename TDataType::Real Real;
15 typedef typename TDataType::Coord Coord;
16
18
19 protected:
20 bool apply() override;
21
22 public:
23 DEF_VAR(Real, Scale, 1.0f, "A parameter to scale the normal magnitude");
24
25 DEF_ARRAY_IN(TContactPair<Real>, Contacts, DeviceType::GPU, "");
26
28 };
29}
DEF_VAR(Real, Scale, 1.0f, "A parameter to scale the normal magnitude")
DEF_INSTANCE_OUT(EdgeSet< TDataType >, EdgeSet, "")
DEF_ARRAY_IN(TContactPair< Real >, Contacts, DeviceType::GPU, "")
bool apply() override
DECLARE_TCLASS(ContactsToEdgeSet, TDataType)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25