PeriDyno 0.8.2
PLYexporter.h
Go to the documentation of this file.
1#pragma once
4#include "node.h"
5#include "Topology/TriangleSet.h"
6
7#include <string>
8#include <memory>
9
10namespace dyno
11{
12 template <typename TDataType> class TriangleSet;
13
14 template<typename TDataType>
15 class PlyExporter : public Node
16 {
17 DECLARE_TCLASS(PlyExporter, TDataType)
18 public:
19
20 typedef typename TDataType::Real Real;
21 typedef typename TDataType::Coord Coord;
22 typedef typename TDataType::Matrix Matrix;
23
24 typedef typename Quat<Real> TQuat;
25
27
28 //void update() override;
29
30 public:
31
32 DEF_VAR(std::string, OutputPath, "D:/plyout_", "OutputPath");
33
34 DEF_VAR(unsigned, FrameStep, 1, "FrameStep");
35
36 DEF_VAR(bool, ReCount, false, "ReCount");
37
39
41
43
45
46
47 protected:
48 void resetStates() override;
49
50 void updateStates() override;
51
52
53 private:
54 std::string file_postfix = ".ply";
55
56 };
57}
#define DEF_INSTANCE_IN(T, name, desc)
Definition: DeclareField.h:48
#define DECLARE_TCLASS(name, T1)
Definition: Object.h:87
DeviceType
Definition: Platform.h:42
@ GPU
Definition: Platform.h:44
double Real
Definition: Typedef.inl:23
DEF_ARRAY_IN(Vec3f, Vec3f, DeviceType::GPU, "")
void resetStates() override
std::string file_postfix
Definition: PLYexporter.h:54
TDataType::Coord Coord
Definition: PLYexporter.h:21
void updateStates() override
Definition: PLYexporter.cpp:26
DEF_VAR(unsigned, FrameStep, 1, "FrameStep")
DEF_VAR(std::string, OutputPath, "D:/plyout_", "OutputPath")
TDataType::Matrix Matrix
Definition: PLYexporter.h:22
TDataType::Real Real
Definition: PLYexporter.h:20
DEF_VAR(bool, ReCount, false, "ReCount")
Quat< Real > TQuat
Definition: PLYexporter.h:24
This is an implementation of AdditiveCCD based on peridyno.
Definition: Array.h:24