PeriDyno 0.8.2
OBJexporter.cpp
Go to the documentation of this file.
1#pragma once
2#include "OBJexporter.h"
3
4
5namespace dyno
6{
7 IMPLEMENT_TCLASS(OBJExporter, TDataType)
8 template <typename TDataType> class TriangleSet;
9
10 template<typename TDataType>
12 {
13 ExportModule = std::make_shared<TriangleMeshWriter<TDataType>>();
14 this->animationPipeline()->pushModule(ExportModule);
15
16 this->stateFrameNumber()->connect(ExportModule->inFrameNumber());
17 this->inTriangleSet()->connect(ExportModule->inTopology());
18
19 ExportModule->varOutputPath()->setValue(this->varOutputPath()->getData());
20 ExportModule->varOutputType()->setValue(this->varOutputType()->getData());
21
22 ExportModule->varStart()->setValue(this->varStartFrame()->getData());
23 ExportModule->varEnd()->setValue(this->varEndFrame()->getData());
24
25
26 }
27
28 template<typename TDataType>
30 {
31 unsigned s = this->varFrameStep()->getData();
32 ExportModule->varFrameStep()->setValue(s);
33 }
34
35 template<typename TDataType>
37 {
38 this->setFrameStep();
39 ExportModule->varOutputPath()->setValue(this->varOutputPath()->getData());
40 ExportModule->varOutputType()->setValue(this->varOutputType()->getData());
41
42 ExportModule->varStart()->setValue(this->varStartFrame()->getData());
43 ExportModule->varEnd()->setValue(this->varEndFrame()->getData());
44 }
45
46
47 template<typename TDataType>
49 {
50
51
52
53 }
54
55
57}
void preUpdateStates() override
Definition: OBJexporter.cpp:36
void resetStates() override
Definition: OBJexporter.cpp:48
This is an implementation of AdditiveCCD based on peridyno.
Definition: Array.h:24
IMPLEMENT_TCLASS(FloatingNumber, TDataType)
DEFINE_CLASS(CircularEmitter)