PeriDyno 1.0.0
Loading...
Searching...
No Matches
MergeTriangleSet.cpp
Go to the documentation of this file.
1#include "MergeTriangleSet.h"
2
3namespace dyno
4{
5 template<typename TDataType>
7 : Node()
8 {
9 auto ts = std::make_shared<TriangleSet<TDataType>>();
10 this->stateTriangleSet()->setDataPtr(ts);
11
12 this->stateTriangleSet()->promoteOuput();
13 }
14
15 template<typename TDataType>
19
20 template<typename TDataType>
25
26 template<typename TDataType>
31
32 template<typename TDataType>
34 {
35 auto first = this->inFirst()->getDataPtr();
36 auto second = this->inSecond()->getDataPtr();
37
38 auto topo = this->stateTriangleSet()->getDataPtr();
39
40 topo->copyFrom(*first->merge(*second));
41 }
42
44}
#define DEFINE_CLASS(name)
Definition Object.h:140
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25